mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
f1f4cdc3cb
commit
57ce39834d
@ -62,6 +62,19 @@ class Role
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set permissions of the role
|
||||||
|
*
|
||||||
|
* @param string[] $permissions
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPermissions(array $permissions)
|
||||||
|
{
|
||||||
|
$this->permissions = $permissions;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the permissions of the role
|
* Get the permissions of the role
|
||||||
*
|
*
|
||||||
@ -89,6 +102,19 @@ class Role
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set restrictions of the role
|
||||||
|
*
|
||||||
|
* @param string[] $restrictions
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setRestrictions(array $restrictions)
|
||||||
|
{
|
||||||
|
$this->restrictions = $restrictions;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the restrictions of the role
|
* Get the restrictions of the role
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user