gitea/routers/api/v1/org
Philip Peterson b0936f4f41
Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544)
This PR changes the `opts` argument in `SearchUsers()` to be passed by
value instead of by pointer, as its mutations do not escape the function
scope and are not used elsewhere. This simplifies reasoning about the
function and avoids unnecessary pointer usage.

This insight emerged during an initial attempt to refactor
`RenderUserSearch()`, which currently intermixes multiple concerns.

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
2025-05-27 19:36:02 +00:00
..
action.go fix: return 201 Created for CreateVariable API responses (#34517) 2025-05-26 12:12:49 -04:00
avatar.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
block.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
hook.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
label.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
member.go Allow admins and org owners to change org member public status (#28294) 2025-04-13 08:07:29 +00:00
org.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
team.go Fix team permission (#34128) 2025-04-08 04:15:15 +00:00