From 24d1799322981931060bf0234c8bb62f6fc11b85 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 13 Sep 2021 17:24:16 -0600 Subject: [PATCH] api(application): fix 'root_admin' not being set --- .../Api/Application/Users/StoreUserRequest.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Http/Requests/Api/Application/Users/StoreUserRequest.php b/app/Http/Requests/Api/Application/Users/StoreUserRequest.php index ad20272cc..4bc895dc9 100644 --- a/app/Http/Requests/Api/Application/Users/StoreUserRequest.php +++ b/app/Http/Requests/Api/Application/Users/StoreUserRequest.php @@ -11,23 +11,13 @@ class StoreUserRequest extends ApplicationApiRequest { $rules = $rules ?? User::getRules(); - $response = collect($rules)->only([ + return collect($rules)->only([ 'external_id', 'email', 'username', 'password', - 'language', 'admin_role_id', + 'root_admin', ])->toArray(); - - return $response; - } - - public function attributes(): array - { - return [ - 'external_id' => 'Third Party Identifier', - 'root_admin' => 'Root Administrator Status', - ]; } }