Fix error when loading nodes

This commit is contained in:
Dane Everitt 2020-09-17 20:44:33 -07:00
parent c9883b5caf
commit 0908830003
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ class SubuserTransformer extends BaseTransformer
'id' => $subuser->id,
'user_id' => $subuser->user_id,
'server_id' => $subuser->server_id,
'permissions' => $subuser->permissions->map(function (Permission $permission) {
return $permission->permission;
}),
'permissions' => $subuser->permissions,
'created_at' => $this->formatTimestamp($subuser->created_at),
'updated_at' => $this->formatTimestamp($subuser->updated_at),
];