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:
parent
897338bfa7
commit
24d0ae18fd
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user