From 24d0ae18fd9ab8ebd1cc4e832ab65fa331843a74 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 18 Nov 2017 16:50:58 -0600 Subject: [PATCH] Include permission for subusers to access the server console. --- app/Transformers/Daemon/ApiKeyTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformers/Daemon/ApiKeyTransformer.php b/app/Transformers/Daemon/ApiKeyTransformer.php index e24bf7331..54aa37d6f 100644 --- a/app/Transformers/Daemon/ApiKeyTransformer.php +++ b/app/Transformers/Daemon/ApiKeyTransformer.php @@ -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])) {