Skip to content

Commit 1e585d7

Browse files
Cherrglafriks
authored andcommitted
backport of #7385 - add missing template variable on organisation settings (#7386)
affects #6755 Signed-off-by: Michael Gnehr <[email protected]>
1 parent f849766 commit 1e585d7

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)