diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-08-13 14:37:17 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-08-13 14:44:17 +0200 |
commit | 571e99b152913aa5833fa08588f001505994cfbf (patch) | |
tree | 51b9b14e8a61b2b520c77308b48350d9290d1ae0 /settings | |
parent | 55dc74bba48704cc2478530300aece9396b7b191 (diff) | |
download | nextcloud-server-571e99b152913aa5833fa08588f001505994cfbf.tar.gz nextcloud-server-571e99b152913aa5833fa08588f001505994cfbf.zip |
also don't count group members when more than 1 ldap configs are active
Diffstat (limited to 'settings')
-rw-r--r-- | settings/users.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php index 3d7f39aa367..d4e51900ddd 100644 --- a/settings/users.php +++ b/settings/users.php @@ -42,7 +42,9 @@ $groupManager = \OC_Group::getManager(); $sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT; if (class_exists('\OCA\user_ldap\GROUP_LDAP')) { - $isLDAPUsed = $groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP'); + $isLDAPUsed = + $groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP') + || $groupManager->isBackendUsed('\OCA\user_ldap\Group_Proxy'); if ($isLDAPUsed) { // LDAP user count can be slow, so we sort by group name here $sortGroupsBy = \OC\Group\MetaData::SORT_GROUPNAME; |