mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Added various useful presets for permissions
This commit is contained in:
parent
5829d42968
commit
1de88e0494
13 changed files with 369 additions and 231 deletions
|
@ -88,6 +88,16 @@ final class PermissionData implements \JsonSerializable
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the saved permissions and set all operations to inherit (which means they are not defined).
|
||||
* @return $this
|
||||
*/
|
||||
public function resetPermissions(): self
|
||||
{
|
||||
$this->data = [];
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Permission Data Instance using the given JSON encoded data
|
||||
* @param string $json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue