aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/AjaxController.php
diff options
context:
space:
mode:
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);