mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
expand permission handling
This commit is contained in:
parent
f802139f33
commit
c9c41a7212
|
|
@ -78,6 +78,9 @@ class PermissionAbstract implements \JsonSerializable
|
|||
/**
|
||||
* Element id.
|
||||
*
|
||||
* null === all
|
||||
* int === specific
|
||||
*
|
||||
* @var null|int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -86,6 +89,10 @@ class PermissionAbstract implements \JsonSerializable
|
|||
/**
|
||||
* Component id.
|
||||
*
|
||||
* null === all
|
||||
* int === specific
|
||||
* 0 === own data
|
||||
*
|
||||
* @var null|int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -115,6 +122,14 @@ class PermissionAbstract implements \JsonSerializable
|
|||
*/
|
||||
public bool $hasCreate = false;
|
||||
|
||||
/**
|
||||
* Default create permissions
|
||||
*
|
||||
* @var null|string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public ?string $defaultCPermissions = null;
|
||||
|
||||
/**
|
||||
* Permission.
|
||||
*
|
||||
|
|
@ -131,6 +146,14 @@ class PermissionAbstract implements \JsonSerializable
|
|||
*/
|
||||
public bool $hasPermission = false;
|
||||
|
||||
/**
|
||||
* Default permission permissions
|
||||
*
|
||||
* @var null|string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public ?string $defaultPPermissions = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user