Added the ability to dynamically translate on the project website.
This commit is contained in:
@@ -10,6 +10,7 @@ enum Permission: string
|
||||
case Project = 'project';
|
||||
case ProjectContent = 'project-content';
|
||||
case ProjectLink = 'project-link';
|
||||
case ProjectTranslation = 'project-translation';
|
||||
|
||||
public function getPermissions(): array
|
||||
{
|
||||
@@ -22,6 +23,10 @@ enum Permission: string
|
||||
'create' => __('permissions.Allowed to create'),
|
||||
'update' => __('permissions.Allowed to edit'),
|
||||
],
|
||||
self::ProjectTranslation => [
|
||||
'view' => __('permissions.Allowed to watch'),
|
||||
'update' => __('permissions.Allowed to edit'),
|
||||
],
|
||||
default => $this->getBasePermissions()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user