don't allow group admins to change admin's accounts
This commit is contained in:
parent
5a4854079f
commit
8c8496aff9
|
@ -141,6 +141,9 @@ class OC_SubAdmin{
|
|||
if(!self::isSubAdmin($subadmin)){
|
||||
return false;
|
||||
}
|
||||
if(OC_Group::inGroup($user, 'admin')){
|
||||
return false;
|
||||
}
|
||||
$accessiblegroups = self::getSubAdminsGroups($subadmin);
|
||||
foreach($accessiblegroups as $accessiblegroup){
|
||||
if(OC_Group::inGroup($user, $accessiblegroup)){
|
||||
|
|
Loading…
Reference in New Issue