mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
parent
3d6ae6ac26
commit
08b70267cd
@ -63,7 +63,17 @@ class Role
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set permissions of the role
|
* Get the permissions of the role
|
||||||
|
*
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getPermissions()
|
||||||
|
{
|
||||||
|
return $this->permissions;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the permissions of the role
|
||||||
*
|
*
|
||||||
* @param string[] $permissions
|
* @param string[] $permissions
|
||||||
*
|
*
|
||||||
@ -75,16 +85,6 @@ class Role
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the permissions of the role
|
|
||||||
*
|
|
||||||
* @return string[]
|
|
||||||
*/
|
|
||||||
public function getPermissions()
|
|
||||||
{
|
|
||||||
return $this->permissions;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a restriction to the role
|
* Add a restriction to the role
|
||||||
*
|
*
|
||||||
@ -102,19 +102,6 @@ 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
|
||||||
*
|
*
|
||||||
@ -136,4 +123,17 @@ class Role
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the restrictions of the role
|
||||||
|
*
|
||||||
|
* @param string[] $restrictions
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setRestrictions(array $restrictions)
|
||||||
|
{
|
||||||
|
$this->restrictions = $restrictions;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user