mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24: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) {
|
} catch (NotReadableError $e) {
|
||||||
return $restrictions;
|
return $restrictions;
|
||||||
}
|
}
|
||||||
foreach ($config as $section) {
|
foreach ($config as $name => $section) {
|
||||||
if ($this->match($section, $username, $groups)) {
|
if ($this->match($section, $username, $groups)) {
|
||||||
if (!array_key_exists($section->name, $restrictions)) {
|
if (!array_key_exists($section->name, $restrictions)) {
|
||||||
$restrictions[$section->name] = array();
|
$restrictions[$section->name] = array();
|
||||||
}
|
}
|
||||||
$restrictions[$section->name][] = $section->restriction;
|
$restrictions[$section->name][$name] = $section->restriction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $restrictions;
|
return $restrictions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user