mirror of
https://github.com/nextcloud/server.git
synced 2026-06-24 08:00:16 -04:00
Merge pull request #61371 from nextcloud/backport/61368/stable32
[stable32] fix: prevent editing delegated admins
This commit is contained in:
commit
7aff6be21c
1 changed files with 3 additions and 0 deletions
|
|
@ -248,6 +248,9 @@ class SubAdmin extends PublicEmitter implements ISubAdmin {
|
|||
if ($this->groupManager->isAdmin($user->getUID())) {
|
||||
return false;
|
||||
}
|
||||
if ($this->groupManager->isDelegatedAdmin($user->getUID())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$accessibleGroups = $this->getSubAdminsGroupIds($subadmin);
|
||||
$userGroups = $this->groupManager->getUserGroupIds($user);
|
||||
|
|
|
|||
Loading…
Reference in a new issue