Skip to content

Commit

Permalink
Bugfix of groups not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
doublemcz committed Aug 26, 2014
1 parent 7836bb8 commit ec154c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Handlers/GroupsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function getUserMemberOf(Manager $ldap, array $userData, array $allowe
return array();
}
$attrs = $raw->current()->getAttributes();
if(!array_key_exists('memberof', $attrs) || !$attrs['memberOf'] instanceof NodeAttribute) {
if(!array_key_exists('memberOf', $attrs) || !$attrs['memberOf'] instanceof NodeAttribute) {
return array();
}

Expand Down Expand Up @@ -144,4 +144,4 @@ protected function getGroupMemberOf(Manager $ldap, $groupDn)
{
return $ldap->search(null, str_replace(':group:', $groupDn, self::$GroupMemberOfLookup));
}
}
}

0 comments on commit ec154c6

Please sign in to comment.