Skip to content

Commit 7aff6be

Browse files
authored
Merge pull request #61371 from nextcloud/backport/61368/stable32
[stable32] fix: prevent editing delegated admins
2 parents 9a08a73 + aa8f2c9 commit 7aff6be

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/SubAdmin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ public function isUserAccessible(IUser $subadmin, IUser $user): bool {
248248
if ($this->groupManager->isAdmin($user->getUID())) {
249249
return false;
250250
}
251+
if ($this->groupManager->isDelegatedAdmin($user->getUID())) {
252+
return false;
253+
}
251254

252255
$accessibleGroups = $this->getSubAdminsGroupIds($subadmin);
253256
$userGroups = $this->groupManager->getUserGroupIds($user);

0 commit comments

Comments
 (0)