Cost units can be edited

This commit is contained in:
2026-02-08 20:06:38 +01:00
parent 6fc65e195c
commit bccfc11687
53 changed files with 2021 additions and 29 deletions

View File

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