Kaynağa Gözat

Also throttle on expiration

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v26.0.0beta1
Joas Schilling 1 yıl önce
ebeveyn
işleme
edb64b193c
No account linked to committer's email address

+ 3
- 1
apps/files/lib/Controller/OpenLocalEditorController.php Dosyayı Görüntüle

@@ -122,7 +122,9 @@ class OpenLocalEditorController extends OCSController {
$this->mapper->delete($entity);

if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
$response = new DataResponse([], Http::STATUS_NOT_FOUND);
$response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]);
return $response;
}

return new DataResponse([

Loading…
İptal
Kaydet