mirror of
https://github.com/nextcloud/server.git
synced 2026-06-18 13:10:47 -04:00
fix: prevent editing delegated admins
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
a0169abe0c
commit
3e9746bec7
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