also don't count group members when more than 1 ldap configs are active
This commit is contained in:
parent
55dc74bba4
commit
571e99b152
|
@ -42,7 +42,9 @@ $groupManager = \OC_Group::getManager();
|
||||||
$sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT;
|
$sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT;
|
||||||
|
|
||||||
if (class_exists('\OCA\user_ldap\GROUP_LDAP')) {
|
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) {
|
if ($isLDAPUsed) {
|
||||||
// LDAP user count can be slow, so we sort by group name here
|
// LDAP user count can be slow, so we sort by group name here
|
||||||
$sortGroupsBy = \OC\Group\MetaData::SORT_GROUPNAME;
|
$sortGroupsBy = \OC\Group\MetaData::SORT_GROUPNAME;
|
||||||
|
|
Loading…
Reference in New Issue