Merge pull request #18872 from owncloud/settings_users_ldap
Check if app is enabled instead of if class exists
This commit is contained in:
commit
a35bc974bb
|
@ -41,7 +41,7 @@ $groupManager = \OC_Group::getManager();
|
||||||
// Set the sort option: SORT_USERCOUNT or SORT_GROUPNAME
|
// Set the sort option: SORT_USERCOUNT or SORT_GROUPNAME
|
||||||
$sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT;
|
$sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT;
|
||||||
|
|
||||||
if (class_exists('\OCA\user_ldap\GROUP_LDAP')) {
|
if (\OC_App::isEnabled('user_ldap')) {
|
||||||
$isLDAPUsed =
|
$isLDAPUsed =
|
||||||
$groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP')
|
$groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP')
|
||||||
|| $groupManager->isBackendUsed('\OCA\user_ldap\Group_Proxy');
|
|| $groupManager->isBackendUsed('\OCA\user_ldap\Group_Proxy');
|
||||||
|
|
Loading…
Reference in New Issue