diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-01-14 12:53:18 -0800 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-01-14 12:53:18 -0800 |
commit | 53ca0db434f3ad8d043a0a9b76bd59f22af38f99 (patch) | |
tree | fd69b40c08932941f31edbb57d8911d847ff230a /lib/api.php | |
parent | 8b2307ce4b258f103506f85e787acbd552e83302 (diff) | |
parent | eab6d7eb23f66ac4a662a036336b292138e4484c (diff) | |
download | nextcloud-server-53ca0db434f3ad8d043a0a9b76bd59f22af38f99.tar.gz nextcloud-server-53ca0db434f3ad8d043a0a9b76bd59f22af38f99.zip |
Merge pull request #1177 from owncloud/OC_User--isAdminUser()
Check if user is admin - bool
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/api.php b/lib/api.php index cb67e0c2a89..c464cd04913 100644 --- a/lib/api.php +++ b/lib/api.php @@ -127,8 +127,7 @@ class OC_API { return false; } else { $subAdmin = OC_SubAdmin::isSubAdmin($user); - $admin = OC_Group::inGroup($user, 'admin'); - if($subAdmin || $admin) { + if($subAdmin) { return true; } else { return false; @@ -141,7 +140,7 @@ class OC_API { if(!$user) { return false; } else { - return OC_Group::inGroup($user, 'admin'); + return OC_User::isAdminUser($user); } break; default: |