From 0908830003cd1338a7e162cdf8c596ebda98fd64 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 17 Sep 2020 20:44:33 -0700 Subject: [PATCH] Fix error when loading nodes --- app/Transformers/Api/Application/SubuserTransformer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Transformers/Api/Application/SubuserTransformer.php b/app/Transformers/Api/Application/SubuserTransformer.php index 7927272ca..265e2f9d0 100644 --- a/app/Transformers/Api/Application/SubuserTransformer.php +++ b/app/Transformers/Api/Application/SubuserTransformer.php @@ -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), ];