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', - ]; } }