Merge pull request #3096 from Icinga/feature/role-all-users
Apply role to all users if the role is defined with users=*
This commit is contained in:
commit
6f9e18cd34
|
@ -28,6 +28,9 @@ class AdmissionLoader
|
|||
$username = strtolower($username);
|
||||
if (! empty($section->users)) {
|
||||
$users = array_map('strtolower', StringHelper::trimSplit($section->users));
|
||||
if (in_array('*', $users)) {
|
||||
return true;
|
||||
}
|
||||
if (in_array($username, $users)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue