api(application): fix 'root_admin' not being set
This commit is contained in:
parent
5843c34240
commit
24d1799322
|
@ -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',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue