Conform to coding guidelines

refs #9950
This commit is contained in:
Matthias Jentsch 2015-09-22 12:51:00 +02:00
parent aebc48cb03
commit 84554d245d
1 changed files with 4 additions and 5 deletions

View File

@ -543,12 +543,11 @@ class LdapUserGroupBackend /*extends LdapRepository*/ implements UserGroupBacken
$userQuery->where(new Expression($this->userFilter));
}
# Posix group only uses simple user name
if ($this->groupClass == 'posixGroup') {
if ($this->groupClass === 'posixGroup') {
# Posix group only uses simple user name
$queryUsername = $user->getUsername();
}
# LDAP groups use the complete DN
else {
} else {
# LDAP groups use the complete DN
if (($queryUsername = $userQuery->fetchDn()) === null) {
return array();
}