Skip to content

Commit 24d0ae1

Browse files
committed
Include permission for subusers to access the server console.
1 parent 897338b commit 24d0ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Transformers/Daemon/ApiKeyTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function transform(DaemonKey $key)
8080

8181
$permissions = $subuser->getRelation('permissions')->pluck('permission')->toArray();
8282
$mappings = Permission::getPermissions(true);
83-
$daemonPermissions = [];
83+
$daemonPermissions = ['s:console'];
8484

8585
foreach ($permissions as $permission) {
8686
if (! is_null($mappings[$permission])) {

0 commit comments

Comments
 (0)