We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68783f3 commit bc78b5fCopy full SHA for bc78b5f
lib/Controller/LockingController.php
@@ -91,9 +91,7 @@ public function lockFolder(int $id): DataResponse {
91
}
92
93
if ($userFolder->getId() === $id) {
94
- $e = new OCSForbiddenException($this->l10n->t('You are not allowed to lock the root'));
95
- $this->logger->error($e->getMessage(), ['exception' => $e]);
96
- throw $e;
+ throw new OCSForbiddenException($this->l10n->t('You are not allowed to lock the root'));
97
98
99
$nodes = $userFolder->getById($id);
0 commit comments