Fix PR52 API author visibility and ticket-option user scoping

This commit is contained in:
2026-04-23 20:56:39 +00:00
parent 6fbe904ed9
commit 3d3b03ee82
3 changed files with 91 additions and 2 deletions
@@ -38,6 +38,7 @@ class BuildProjectTicketOptionsPayload
'ticketTypes' => TicketTypeResource::collection($project->ticketTypes()->get())->resolve(),
'users' => UserResource::collection(
User::query()
->visibleToProject($project)
->orderBy('name')
->get(),
)->resolve(),