Browse Source

Use UID instead of login name

Login name can be something different and thus I'm pretty sure this will break in combination with external auth providers such as LDAP.
tags/v8.0.0alpha1
Lukas Reschke 9 years ago
parent
commit
d712c27fe1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      settings/ajax/geteveryonecount.php

+ 1
- 1
settings/ajax/geteveryonecount.php View File

@@ -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…
Cancel
Save