api(application): fix 'root_admin' not being set

This commit is contained in:
Matthew Penner 2021-09-13 17:24:16 -06:00
parent 5843c34240
commit 24d1799322
No known key found for this signature in database
GPG Key ID: 030E4AB751DC756F
1 changed files with 2 additions and 12 deletions

View File

@ -11,23 +11,13 @@ class StoreUserRequest extends ApplicationApiRequest
{ {
$rules = $rules ?? User::getRules(); $rules = $rules ?? User::getRules();
$response = collect($rules)->only([ return collect($rules)->only([
'external_id', 'external_id',
'email', 'email',
'username', 'username',
'password', 'password',
'language',
'admin_role_id', 'admin_role_id',
'root_admin',
])->toArray(); ])->toArray();
return $response;
}
public function attributes(): array
{
return [
'external_id' => 'Third Party Identifier',
'root_admin' => 'Root Administrator Status',
];
} }
} }