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

View file

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