mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
08b70267cd
commit
123488cfc0
@ -85,23 +85,6 @@ class Role
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a restriction to the role
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $restriction
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function addRestriction($name, $restriction)
|
||||
{
|
||||
if (! isset($this->restrictions[$name])) {
|
||||
$this->restrictions[$name] = array();
|
||||
}
|
||||
$this->restrictions[$name][] = $restriction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the restrictions of the role
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user