mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Add missing permissions
This commit is contained in:
parent
1d19ef2e08
commit
f7b6173dc5
@ -215,6 +215,7 @@ class UserResource extends Resource
|
|||||||
],
|
],
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'rename',
|
'rename',
|
||||||
|
'description',
|
||||||
'reinstall',
|
'reinstall',
|
||||||
'activity',
|
'activity',
|
||||||
],
|
],
|
||||||
@ -458,11 +459,13 @@ class UserResource extends Resource
|
|||||||
->label('')
|
->label('')
|
||||||
->options([
|
->options([
|
||||||
'rename' => 'Rename',
|
'rename' => 'Rename',
|
||||||
|
'description' => 'Description',
|
||||||
'reinstall' => 'Reinstall',
|
'reinstall' => 'Reinstall',
|
||||||
'activity' => 'Activity',
|
'activity' => 'Activity',
|
||||||
])
|
])
|
||||||
->descriptions([
|
->descriptions([
|
||||||
'rename' => trans('server/users.permissions.setting_rename'),
|
'rename' => trans('server/users.permissions.setting_rename'),
|
||||||
|
'description' => trans('server/users.permissions.setting_description'),
|
||||||
'reinstall' => trans('server/users.permissions.setting_reinstall'),
|
'reinstall' => trans('server/users.permissions.setting_reinstall'),
|
||||||
'activity' => trans('server/users.permissions.activity_desc'),
|
'activity' => trans('server/users.permissions.activity_desc'),
|
||||||
]),
|
]),
|
||||||
|
@ -115,6 +115,7 @@ class ListUsers extends ListRecords
|
|||||||
],
|
],
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'rename',
|
'rename',
|
||||||
|
'description',
|
||||||
'reinstall',
|
'reinstall',
|
||||||
],
|
],
|
||||||
'activity' => [
|
'activity' => [
|
||||||
@ -350,11 +351,13 @@ class ListUsers extends ListRecords
|
|||||||
->columns(2)
|
->columns(2)
|
||||||
->options([
|
->options([
|
||||||
'rename' => 'Rename',
|
'rename' => 'Rename',
|
||||||
|
'description' => 'Description',
|
||||||
'reinstall' => 'Reinstall',
|
'reinstall' => 'Reinstall',
|
||||||
'activity' => 'Activity',
|
'activity' => 'Activity',
|
||||||
])
|
])
|
||||||
->descriptions([
|
->descriptions([
|
||||||
'rename' => trans('server/users.permissions.setting_rename'),
|
'rename' => trans('server/users.permissions.setting_rename'),
|
||||||
|
'description' => trans('server/users.permissions.setting_description'),
|
||||||
'reinstall' => trans('server/users.permissions.setting_reinstall'),
|
'reinstall' => trans('server/users.permissions.setting_reinstall'),
|
||||||
'activity' => trans('server/users.permissions.activity_desc'),
|
'activity' => trans('server/users.permissions.activity_desc'),
|
||||||
]),
|
]),
|
||||||
|
@ -223,7 +223,8 @@ class Permission extends Model implements Validatable
|
|||||||
'settings' => [
|
'settings' => [
|
||||||
'description' => 'Permissions that control a user\'s access to the settings for this server.',
|
'description' => 'Permissions that control a user\'s access to the settings for this server.',
|
||||||
'keys' => [
|
'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.',
|
'reinstall' => 'Allows a user to trigger a reinstall of this server.',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -16,7 +16,8 @@ return [
|
|||||||
'startup_update' => 'Allows a user to modify the startup variables for the server.',
|
'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.',
|
'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_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.',
|
'activity_read' => 'Allows a user to view the activity logs for the server.',
|
||||||
'websocket_*' => 'Allows a user access to the websocket for this server.',
|
'websocket_*' => 'Allows a user access to the websocket for this server.',
|
||||||
'control_console' => 'Allows a user to send data to the server console.',
|
'control_console' => 'Allows a user to send data to the server console.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user