Add domain part to user groups if the user group backend is reponsible for a domain

This commit is contained in:
Eric Lippmann 2017-07-31 09:03:40 +02:00
parent fe12ed05e3
commit ab7fa9f925
1 changed files with 3 additions and 0 deletions

View File

@ -721,6 +721,9 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
$groups = array();
foreach ($groupQuery as $row) {
$groups[] = $row->{$this->groupNameAttribute};
if ($domain !== null) {
$groups[] = $row->{$this->groupNameAttribute} . "@$domain";
}
}
return $groups;