diff options
Diffstat (limited to 'lib/subadmin.php')
-rw-r--r-- | lib/subadmin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/subadmin.php b/lib/subadmin.php index 8d4f413b104..718fe922ffe 100644 --- a/lib/subadmin.php +++ b/lib/subadmin.php @@ -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)){ |