mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 21:49:43 -04:00
Use OC_User::isAdminUser() in lib/api.php
This commit is contained in:
parent
ab8777a623
commit
eefaefe87d
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue