diff options
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/setting.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index b3ff01d238..1d534ec558 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -14,7 +14,6 @@ import ( "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" userSetting "code.gitea.io/gitea/routers/user/setting" ) @@ -31,7 +30,7 @@ const ( func Settings(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("org.settings") ctx.Data["PageIsSettingsOptions"] = true - ctx.Data["CurrentVisibility"] = structs.VisibleType(ctx.Org.Organization.Visibility) + ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility ctx.HTML(200, tplSettingsOptions) } @@ -39,7 +38,7 @@ func Settings(ctx *context.Context) { func SettingsPost(ctx *context.Context, form auth.UpdateOrgSettingForm) { ctx.Data["Title"] = ctx.Tr("org.settings") ctx.Data["PageIsSettingsOptions"] = true - ctx.Data["CurrentVisibility"] = structs.VisibleType(ctx.Org.Organization.Visibility) + ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility if ctx.HasError() { ctx.HTML(200, tplSettingsOptions) |