mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
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…
x
Reference in New Issue
Block a user