File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ func NewUserPost(ctx *context.Context) {
105105 ctx .Data ["PageIsAdmin" ] = true
106106 ctx .Data ["PageIsAdminUsers" ] = true
107107 ctx .Data ["DefaultUserVisibilityMode" ] = setting .Service .DefaultUserVisibilityMode
108+ ctx .Data ["AllowedUserVisibilityModes" ] = setting .Service .AllowedUserVisibilityModesSlice .ToVisibleTypeSlice ()
108109
109110 sources , err := auth .Sources ()
110111 if err != nil {
@@ -273,6 +274,7 @@ func EditUserPost(ctx *context.Context) {
273274 ctx .Data ["PageIsAdmin" ] = true
274275 ctx .Data ["PageIsAdminUsers" ] = true
275276 ctx .Data ["DisableMigrations" ] = setting .Repository .DisableMigrations
277+ ctx .Data ["AllowedUserVisibilityModes" ] = setting .Service .AllowedUserVisibilityModesSlice .ToVisibleTypeSlice ()
276278
277279 u := prepareUserInfo (ctx )
278280 if ctx .Written () {
You can’t perform that action at this time.
0 commit comments