loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix incorrect visibility dropdown list in add/edit user page (#23804)

Visibility dropdown list will not work in add/edit user page when error
occurred

authored by

yp05327 and committed by
GitHub
c09eab54 525b7382

+2
+2
routers/web/admin/users.go
··· 105 105 ctx.Data["PageIsAdmin"] = true 106 106 ctx.Data["PageIsAdminUsers"] = true 107 107 ctx.Data["DefaultUserVisibilityMode"] = setting.Service.DefaultUserVisibilityMode 108 + ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice() 108 109 109 110 sources, err := auth.Sources() 110 111 if err != nil { ··· 273 274 ctx.Data["PageIsAdmin"] = true 274 275 ctx.Data["PageIsAdminUsers"] = true 275 276 ctx.Data["DisableMigrations"] = setting.Repository.DisableMigrations 277 + ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice() 276 278 277 279 u := prepareUserInfo(ctx) 278 280 if ctx.Written() {