diff options
author | Tyrone Yeh <siryeh@gmail.com> | 2023-04-15 02:48:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 14:48:36 -0400 |
commit | ed81b608cb5bd94ef518393cdd724c4fac1215d4 (patch) | |
tree | 16fa2a8847833c4338ca8aa397cacc2fd7626cf7 /routers/web/user/search.go | |
parent | cfe3d6e9b507a9331328e55ff98a1f582abae185 (diff) | |
download | gitea-ed81b608cb5bd94ef518393cdd724c4fac1215d4.tar.gz gitea-ed81b608cb5bd94ef518393cdd724c4fac1215d4.zip |
Add option to search for users is active join a team (#24093)
Adding a user in a team to enter a username gives a list of no active
users
---------
Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'routers/web/user/search.go')
-rw-r--r-- | routers/web/user/search.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/search.go b/routers/web/user/search.go index c5c3aa75f0..bdc4116e37 100644 --- a/routers/web/user/search.go +++ b/routers/web/user/search.go @@ -24,6 +24,7 @@ func Search(ctx *context.Context) { Keyword: ctx.FormTrim("q"), UID: ctx.FormInt64("uid"), Type: user_model.UserTypeIndividual, + IsActive: ctx.FormOptionalBool("active"), ListOptions: listOptions, }) if err != nil { |