1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00

Include permission for subusers to access the server console.

This commit is contained in:
Dane Everitt 2017-11-18 16:50:58 -06:00
parent 897338bfa7
commit 24d0ae18fd
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -80,7 +80,7 @@ class ApiKeyTransformer extends TransformerAbstract
$permissions = $subuser->getRelation('permissions')->pluck('permission')->toArray();
$mappings = Permission::getPermissions(true);
$daemonPermissions = [];
$daemonPermissions = ['s:console'];
foreach ($permissions as $permission) {
if (! is_null($mappings[$permission])) {