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>
This commit is contained in:
parent
efa9649696
commit
6aba69ce85
3 changed files with 6 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue