diff options
author | Frédéric Fortier <frederic.fortier@polymtl.ca> | 2015-10-15 20:30:27 -0400 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-16 09:39:07 +0200 |
commit | f178f612d8d0305fae304dafd2ba1d5708ef9c79 (patch) | |
tree | 241b47103248c5ffe947868146f5007897114960 /apps | |
parent | 7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff) | |
download | nextcloud-server-f178f612d8d0305fae304dafd2ba1d5708ef9c79.tar.gz nextcloud-server-f178f612d8d0305fae304dafd2ba1d5708ef9c79.zip |
Revert "adjust to nested group fix
This reverts commit 845485cfe, which fixes #19816 regression.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index cf58e5b902d..2e36a337b04 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -33,7 +33,6 @@ namespace OCA\user_ldap; use OCA\user_ldap\lib\Access; use OCA\user_ldap\lib\BackendUtility; -use OCA\user_ldap\lib\user\User; class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { protected $enabled = false; @@ -198,11 +197,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { return array(); } $seen[$DN] = 1; - $user = $this->access->userManager->get($DN); - if(!$user instanceof User) { - return array(); - } - $groups = $user->getMemberOfGroups(); + $groups = $this->access->readAttribute($DN, 'memberOf'); if (!is_array($groups)) { return array(); } |