File tree 1 file changed +2
-0
lines changed
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) {
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,6 +274,7 @@ func EditUserPost(ctx *context.Context) {
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 () {
You can’t perform that action at this time.
0 commit comments