summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/api.php b/lib/api.php
index 29446e979fe..ba6e880261d 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -131,7 +131,13 @@ class OC_API {
if(!$user){
return false;
} else {
- return OC_SubAdmin::isSubAdmin($user);
+ $subadmin = OC_SubAdmin::isSubAdmin($user);
+ $admin = OC_Group::inGroup($user, 'admin');
+ if($subadmin || $admin){
+ return true;
+ } else {
+ return false;
+ }
}
break;
case OC_API::ADMIN_AUTH:
@@ -236,6 +242,6 @@ class OC_API {
$writer->writeElement($k, $v);
}
}
-
+ }
}