Add basic server activity log view

This commit is contained in:
DaneEveritt 2022-06-12 15:16:48 -04:00
parent 0b4936ff1c
commit 2f1c8ae91d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 153 additions and 2 deletions

View file

@ -63,6 +63,8 @@ class Permission extends Model
public const ACTION_SETTINGS_RENAME = 'settings.rename';
public const ACTION_SETTINGS_REINSTALL = 'settings.reinstall';
public const ACTION_ACTIVITY_READ = 'activity.read';
/**
* Should timestamps be used on this model.
*
@ -210,6 +212,13 @@ class Permission extends Model
'reinstall' => 'Allows a user to trigger a reinstall of this server.',
],
],
'activity' => [
'description' => 'Permissions that control a user\'s access to the server activity logs.',
'keys' => [
'read' => 'Allows a user to view the activity logs for the server.',
],
],
];
/**