Fix display of navbar links to admins, closes #1920

This commit is contained in:
Dane Everitt 2020-04-17 10:21:15 -07:00
parent 4193c5f664
commit e969344f3b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 67 additions and 39 deletions

View file

@ -15,7 +15,7 @@ class Permission extends Model
/**
* Constants defining different permissions available.
*/
const ACTION_WEBSOCKET = 'websocket.*';
const ACTION_WEBSOCKET_CONNECT = 'websocket.connect';
const ACTION_CONTROL_CONSOLE = 'control.console';
const ACTION_CONTROL_START = 'control.start';
const ACTION_CONTROL_STOP = 'control.stop';
@ -105,7 +105,7 @@ class Permission extends Model
'websocket' => [
'description' => 'Allows the user to connect to the server websocket, giving them access to view console output and realtime server stats.',
'keys' => [
'*' => 'Gives user full read access to the websocket.',
'connect' => 'Allows a user to connect to the websocket instance for a server to stream the console.',
],
],