Skip to content
Snippets Groups Projects
Commit eefaefe8 authored by Tom Needham's avatar Tom Needham
Browse files

Use OC_User::isAdminUser() in lib/api.php

parent ab8777a6
Branches
No related tags found
Loading
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment