mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
restrictions: Include restriction's section name in user restrictions
This commit is contained in:
parent
64d41ac5a3
commit
74bd9b319d
@ -75,12 +75,12 @@ class AdmissionLoader
|
||||
} catch (NotReadableError $e) {
|
||||
return $restrictions;
|
||||
}
|
||||
foreach ($config as $section) {
|
||||
foreach ($config as $name => $section) {
|
||||
if ($this->match($section, $username, $groups)) {
|
||||
if (!array_key_exists($section->name, $restrictions)) {
|
||||
$restrictions[$section->name] = array();
|
||||
}
|
||||
$restrictions[$section->name][] = $section->restriction;
|
||||
$restrictions[$section->name][$name] = $section->restriction;
|
||||
}
|
||||
}
|
||||
return $restrictions;
|
||||
|
Loading…
x
Reference in New Issue
Block a user