Merge pull request #12611 from owncloud/use-uid-instead-of-loginname
Use UID instead of login name
This commit is contained in:
commit
269ae49c1c
|
@ -25,7 +25,7 @@ OC_JSON::checkSubAdminUser();
|
|||
|
||||
$userCount = 0;
|
||||
|
||||
$currentUser = \OC::$server->getUserSession()->getLoginName();
|
||||
$currentUser = \OC::$server->getUserSession()->getUser()->getUID();
|
||||
|
||||
if (!OC_User::isAdminUser($currentUser)) {
|
||||
$groups = OC_SubAdmin::getSubAdminsGroups($currentUser);
|
||||
|
|
Loading…
Reference in New Issue