Added the ability to add project information.

This commit is contained in:
2024-04-14 15:27:51 +05:00
parent b7d0a2453e
commit 2769585de0
35 changed files with 862 additions and 14 deletions
+6
View File
@@ -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()
};