Add missing permissions

This commit is contained in:
Vehikl 2025-04-24 16:22:48 -04:00
parent 1d19ef2e08
commit f7b6173dc5
4 changed files with 10 additions and 2 deletions

View File

@ -215,6 +215,7 @@ class UserResource extends Resource
],
'settings' => [
'rename',
'description',
'reinstall',
'activity',
],
@ -458,11 +459,13 @@ class UserResource extends Resource
->label('')
->options([
'rename' => 'Rename',
'description' => 'Description',
'reinstall' => 'Reinstall',
'activity' => 'Activity',
])
->descriptions([
'rename' => trans('server/users.permissions.setting_rename'),
'description' => trans('server/users.permissions.setting_description'),
'reinstall' => trans('server/users.permissions.setting_reinstall'),
'activity' => trans('server/users.permissions.activity_desc'),
]),

View File

@ -115,6 +115,7 @@ class ListUsers extends ListRecords
],
'settings' => [
'rename',
'description',
'reinstall',
],
'activity' => [
@ -350,11 +351,13 @@ class ListUsers extends ListRecords
->columns(2)
->options([
'rename' => 'Rename',
'description' => 'Description',
'reinstall' => 'Reinstall',
'activity' => 'Activity',
])
->descriptions([
'rename' => trans('server/users.permissions.setting_rename'),
'description' => trans('server/users.permissions.setting_description'),
'reinstall' => trans('server/users.permissions.setting_reinstall'),
'activity' => trans('server/users.permissions.activity_desc'),
]),

View File

@ -223,7 +223,8 @@ class Permission extends Model implements Validatable
'settings' => [
'description' => 'Permissions that control a user\'s access to the settings for this server.',
'keys' => [
'rename' => 'Allows a user to rename this server and change the description of it.',
'rename' => 'Allows a user to rename this server.',
'description' => 'Allows a user to change the description of this server.',
'reinstall' => 'Allows a user to trigger a reinstall of this server.',
],
],

View File

@ -16,7 +16,8 @@ return [
'startup_update' => 'Allows a user to modify the startup variables for the server.',
'startup_docker_image' => 'Allows a user to modify the Docker image used when running the server.',
'setting_reinstall' => 'Allows a user to trigger a reinstall of this server.',
'setting_rename' => 'Allows a user to rename this server and change the description of it.',
'setting_rename' => 'Allows a user to rename this server.',
'setting_description' => 'Allows a user to change the description of this server.',
'activity_read' => 'Allows a user to view the activity logs for the server.',
'websocket_*' => 'Allows a user access to the websocket for this server.',
'control_console' => 'Allows a user to send data to the server console.',