aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/AjaxController.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-08-31 16:00:21 -0100
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-09-01 20:14:52 +0200
commite55087b6b18ec7a8f09d02265060d7b018ad4135 (patch)
tree353672a473ea649032cc9353abb690845eff741d /apps/files_external/lib/Controller/AjaxController.php
parentb0fae951e36976aff1fc606248112f6f495e7359 (diff)
downloadnextcloud-server-e55087b6b18ec7a8f09d02265060d7b018ad4135.tar.gz
nextcloud-server-e55087b6b18ec7a8f09d02265060d7b018ad4135.zip
admin have no special rights on users' entries
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files_external/lib/Controller/AjaxController.php')
-rw-r--r--apps/files_external/lib/Controller/AjaxController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Controller/AjaxController.php b/apps/files_external/lib/Controller/AjaxController.php
index db23ecd709d..e41a75a62bc 100644
--- a/apps/files_external/lib/Controller/AjaxController.php
+++ b/apps/files_external/lib/Controller/AjaxController.php
@@ -108,7 +108,7 @@ class AjaxController extends Controller {
$currentUser = $this->userSession->getUser();
// Non-admins can only edit their own credentials
- $allowedToEdit = ($this->groupManager->isAdmin($currentUser->getUID()) || $currentUser->getUID() === $uid);
+ $allowedToEdit = ($currentUser->getUID() === $uid);
if ($allowedToEdit) {
$this->globalAuth->saveAuth($uid, $user, $password);