mirror of
https://github.com/nextcloud/server.git
synced 2026-07-16 13:23:11 -04:00
fix: prevent editing delegated admins
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
dd4969b48b
commit
e28705c808
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