diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 10:53:40 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 11:11:11 +0100 |
commit | 9f532df1a4abecf3d0e8fe329d84bdfe75376642 (patch) | |
tree | 9ed719c4076b6db774202a15a0aa7ca0ccc5bfa3 /settings/Controller | |
parent | 54a30a4b81700570303eaae03810f6ef553d66a2 (diff) | |
download | nextcloud-server-9f532df1a4abecf3d0e8fe329d84bdfe75376642.tar.gz nextcloud-server-9f532df1a4abecf3d0e8fe329d84bdfe75376642.zip |
Show disabled even if empty if ldap enabled
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/UsersController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index 8460144aeb4..12c3e47dfea 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -192,7 +192,7 @@ class UsersController extends Controller { } if ($this->isAdmin) { - $disabledUsers = $isLDAPUsed ? 0 : $this->userManager->countDisabledUsers(); + $disabledUsers = $isLDAPUsed ? -1 : $this->userManager->countDisabledUsers(); $userCount = $isLDAPUsed ? 0 : array_reduce($this->userManager->countUsers(), function($v, $w) { return $v + (int)$w; }, 0); @@ -214,7 +214,7 @@ class UsersController extends Controller { } }; $userCount += $isLDAPUsed ? 0 : $this->userManager->countUsersOfGroups($groupsInfo->getGroups()); - $disabledUsers = $isLDAPUsed ? 0 : $this->userManager->countDisabledUsersOfGroups($groupsNames); + $disabledUsers = $isLDAPUsed ? -1 : $this->userManager->countDisabledUsersOfGroups($groupsNames); } $disabledUsersGroup = [ 'id' => 'disabled', |