Skip to content

Commit 0622e83

Browse files
Cherrglunny
authored andcommitted
add missing template variable on organisation settings (#7385)
fix #6755 Signed-off-by: Michael Gnehr <[email protected]>
1 parent 1fc90bb commit 0622e83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/org/setting.go

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func Settings(ctx *context.Context) {
3939
func SettingsPost(ctx *context.Context, form auth.UpdateOrgSettingForm) {
4040
ctx.Data["Title"] = ctx.Tr("org.settings")
4141
ctx.Data["PageIsSettingsOptions"] = true
42+
ctx.Data["CurrentVisibility"] = structs.VisibleType(ctx.Org.Organization.Visibility)
4243

4344
if ctx.HasError() {
4445
ctx.HTML(200, tplSettingsOptions)

0 commit comments

Comments
 (0)