aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/admin
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2024-03-02 22:55:02 +0100
committerGitHub <noreply@github.com>2024-03-02 22:55:02 +0100
commite3e6569c5fd8c69aa65384e6d1636cc14b23a32b (patch)
treed43b84efecd46f4b57c9ce6a5558f9c5b2280078 /routers/web/admin
parent937e8b55149388840bbf6c4d7216495bc3dd2fe9 (diff)
downloadgitea-e3e6569c5fd8c69aa65384e6d1636cc14b23a32b.tar.gz
gitea-e3e6569c5fd8c69aa65384e6d1636cc14b23a32b.zip
Add option to set language in admin user view (#28449)
![image](https://github.com/go-gitea/gitea/assets/24977596/be7e3f92-af3f-4628-b4ed-abf6439687f3) `/admin/users/<UserID>/edit` ![image](https://github.com/go-gitea/gitea/assets/24977596/906af0dd-cceb-4ed9-9cd9-32c71ae1bf71) `/admin/users/<UserID>` --- *Sponsored by Kithara Software GmbH*
Diffstat (limited to 'routers/web/admin')
-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 ca47175401..a34e0d0f0d 100644
--- a/routers/web/admin/users.go
+++ b/routers/web/admin/users.go
@@ -439,6 +439,7 @@ func EditUserPost(ctx *context.Context) {
AllowCreateOrganization: optional.Some(form.AllowCreateOrganization),
IsRestricted: optional.Some(form.Restricted),
Visibility: optional.Some(form.Visibility),
+ Language: optional.Some(form.Language),
}
if err := user_service.UpdateUser(ctx, u, opts); err != nil {