mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
b3e0b5d587
commit
34eadb7f29
@ -252,6 +252,10 @@ class User
|
|||||||
*/
|
*/
|
||||||
public function setRestrictions(array $restrictions)
|
public function setRestrictions(array $restrictions)
|
||||||
{
|
{
|
||||||
|
foreach ($restrictions as $name => $restriction) {
|
||||||
|
$restrictions[$name] = str_replace('$currentUser$', $this->getLocalUsername(), $restriction);
|
||||||
|
}
|
||||||
|
|
||||||
$this->restrictions = $restrictions;
|
$this->restrictions = $restrictions;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user