diff options
author | Tom Needham <tom@owncloud.com> | 2013-02-09 12:00:44 +0000 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2013-02-09 12:00:44 +0000 |
commit | eefaefe87d4ef2271c7a079632744948ca8d2496 (patch) | |
tree | 25c5fdb93948002ae999ff3d0b80490d36f36255 /lib | |
parent | ab8777a623099f04636e33e3e406cfd685cf4867 (diff) | |
download | nextcloud-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.php | 4 |
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: |