diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-11 20:39:39 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-11 20:39:39 +0200 |
commit | c167fb5ccb83361323e497179491db72d1f77869 (patch) | |
tree | 1064c8344496944917e196c784cd1b907c4e7d24 /apps/files | |
parent | cfbbace45060c70d80cc01c79595c983747c63c4 (diff) | |
download | nextcloud-server-c167fb5ccb83361323e497179491db72d1f77869.tar.gz nextcloud-server-c167fb5ccb83361323e497179491db72d1f77869.zip |
Also remove token when we successfully validated
Signed-off-by: Joas Schilling <coding@schilljs.com>
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); } |