summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-02-09 12:00:44 +0000
committerTom Needham <tom@owncloud.com>2013-02-09 12:00:44 +0000
commiteefaefe87d4ef2271c7a079632744948ca8d2496 (patch)
tree25c5fdb93948002ae999ff3d0b80490d36f36255 /lib
parentab8777a623099f04636e33e3e406cfd685cf4867 (diff)
downloadnextcloud-server-eefaefe87d4ef2271c7a079632744948ca8d2496.tar.gz
nextcloud-server-eefaefe87d4ef2271c7a079632744948ca8d2496.zip
Use OC_User::isAdminUser() in lib/api.php
Diffstat (limited to 'lib')
-rw-r--r--lib/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api.php b/lib/api.php
index 3e998bd9e4a..3d160734fb7 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -209,7 +209,7 @@ class OC_API {
return false;
} else {
$subAdmin = OC_SubAdmin::isSubAdmin($user);
- $admin = OC_Group::inGroup($user, 'admin');
+ $admin = OC_User::isAdminUser($user);
if($subAdmin || $admin) {
return true;
} else {
@@ -223,7 +223,7 @@ class OC_API {
if(!$user) {
return false;
} else {
- return OC_Group::inGroup($user, 'admin');
+ return OC_User::isAdminUser($user);
}
break;
default: