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();
|
$permissions = $subuser->getRelation('permissions')->pluck('permission')->toArray();
|
||||||
$mappings = Permission::getPermissions(true);
|
$mappings = Permission::getPermissions(true);
|
||||||
$daemonPermissions = [];
|
$daemonPermissions = ['s:console'];
|
||||||
|
|
||||||
foreach ($permissions as $permission) {
|
foreach ($permissions as $permission) {
|
||||||
if (! is_null($mappings[$permission])) {
|
if (! is_null($mappings[$permission])) {
|
||||||
|
|
Loading…
Reference in New Issue