Skip to content

Commit bf1af92

Browse files
committed
fix visibility in new user page
1 parent aa1584f commit bf1af92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/admin/user/new.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
<div class="inline field {{if .Err_Visibility}}error{{end}}">
3030
<span class="inline required field"><label for="visibility">{{.locale.Tr "settings.visibility"}}</label></span>
3131
<div class="ui selection type dropdown">
32-
<input type="hidden" id="visibility" name="visibility" value="{{.Form.Visibility}}">
32+
{{if .Form.Visibility.IsPublic}}<input type="hidden" id="visibility" name="visibility" value="0">{{end}}
33+
{{if .Form.Visibility.IsLimited}}<input type="hidden" id="visibility" name="visibility" value="1">{{end}}
34+
{{if .Form.Visibility.IsPrivate}}<input type="hidden" id="visibility" name="visibility" value="2">{{end}}
3335
<div class="text">
3436
{{if .Form.Visibility.IsPublic}}{{.locale.Tr "settings.visibility.public"}}{{end}}
3537
{{if .Form.Visibility.IsLimited}}{{.locale.Tr "settings.visibility.limited"}}{{end}}

0 commit comments

Comments
 (0)