don't allow group admins to change admin's accounts

This commit is contained in:
Georg Ehrke 2012-08-26 16:29:10 +02:00
parent 5a4854079f
commit 8c8496aff9
1 changed files with 3 additions and 0 deletions

View File

@ -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)){