Cost units can be edited
This commit is contained in:
@@ -29,6 +29,16 @@ class UserResource extends JsonResource {
|
||||
unset($data['activation_token_expires_at']);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getReducedData(): array {
|
||||
return [
|
||||
'id' => $this->user->id,
|
||||
'nicename' => $this->user->getNicename(),
|
||||
'fullname' => $this->user->getFullName(),
|
||||
'firstname' => $this->user->firstname,
|
||||
'lastname' => $this->user->lastname,
|
||||
'localGroup' => $this->user->localGroup()->name,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user