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);
|
$username = strtolower($username);
|
||||||
if (! empty($section->users)) {
|
if (! empty($section->users)) {
|
||||||
$users = array_map('strtolower', StringHelper::trimSplit($section->users));
|
$users = array_map('strtolower', StringHelper::trimSplit($section->users));
|
||||||
|
if (in_array('*', $users)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (in_array($username, $users)) {
|
if (in_array($username, $users)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue