diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Controller/OpenLocalEditorController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/OpenLocalEditorController.php b/apps/files/lib/Controller/OpenLocalEditorController.php index ff39c1fe0e7..ad6783a3cb2 100644 --- a/apps/files/lib/Controller/OpenLocalEditorController.php +++ b/apps/files/lib/Controller/OpenLocalEditorController.php @@ -119,8 +119,9 @@ class OpenLocalEditorController extends OCSController { return $response; } + $this->mapper->delete($entity); + if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) { - $this->mapper->delete($entity); return new DataResponse([], Http::STATUS_NOT_FOUND); } |