Added the ability to add project information.
This commit is contained in:
@@ -8,6 +8,7 @@ enum Permission: string
|
||||
case Role = 'role';
|
||||
case User = 'user';
|
||||
case Project = 'project';
|
||||
case ProjectContent = 'project-content';
|
||||
|
||||
public function getPermissions(): array
|
||||
{
|
||||
@@ -15,6 +16,11 @@ enum Permission: string
|
||||
self::AdminPanel => [
|
||||
'view' => __('permissions.Administrative panel allowed'),
|
||||
],
|
||||
self::ProjectContent => [
|
||||
'view' => __('permissions.Allowed to watch'),
|
||||
'create' => __('permissions.Allowed to create'),
|
||||
'update' => __('permissions.Allowed to edit'),
|
||||
],
|
||||
default => $this->getBasePermissions()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user