mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Add domain part to user groups if the user group backend is reponsible for a domain
This commit is contained in:
parent
fe12ed05e3
commit
ab7fa9f925
@ -721,6 +721,9 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
foreach ($groupQuery as $row) {
|
foreach ($groupQuery as $row) {
|
||||||
$groups[] = $row->{$this->groupNameAttribute};
|
$groups[] = $row->{$this->groupNameAttribute};
|
||||||
|
if ($domain !== null) {
|
||||||
|
$groups[] = $row->{$this->groupNameAttribute} . "@$domain";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $groups;
|
return $groups;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user