Skip to content

Commit 3a7f468

Browse files
committed
fix edit user
1 parent 49073c4 commit 3a7f468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/admin/users.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ func EditUserPost(ctx *context.Context) {
274274
ctx.Data["PageIsAdmin"] = true
275275
ctx.Data["PageIsAdminUsers"] = true
276276
ctx.Data["DisableMigrations"] = setting.Repository.DisableMigrations
277+
ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice()
277278

278279
u := prepareUserInfo(ctx)
279280
if ctx.Written() {

0 commit comments

Comments
 (0)