summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorGergely Nagy <forgejo@gergo.csillger.hu>2024-02-29 13:55:52 +0100
committerhazycora <hazysu@riseup.net>2024-04-03 22:18:02 +0200
commit6aba69ce8565179b46d73d1ba23d8d4ad16c4557 (patch)
treed37e58592af9ca64fa4b8e756a1fb85562749897 /routers
parentservices/convert/user: Convert pronouns properly (diff)
downloadforgejo-6aba69ce8565179b46d73d1ba23d8d4ad16c4557.tar.xz
forgejo-6aba69ce8565179b46d73d1ba23d8d4ad16c4557.zip
Enable user pronoun editing from the admin ui
While users can edit their own pronouns, the admin UI enables an admin to edit *any* user setting. As such, pronouns should be editable here, too. For the sake of simplicity, the input here is a simple text input field, rather than a dropdown. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/admin/users.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go
index b93668c5a2..3dcf0d2aa8 100644
--- a/routers/web/admin/users.go
+++ b/routers/web/admin/users.go
@@ -435,6 +435,7 @@ func EditUserPost(ctx *context.Context) {
FullName: optional.Some(form.FullName),
Website: optional.Some(form.Website),
Location: optional.Some(form.Location),
+ Pronouns: optional.Some(form.Pronouns),
IsActive: optional.Some(form.Active),
IsAdmin: optional.Some(form.Admin),
AllowGitHook: optional.Some(form.AllowGitHook),