mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-19 15:00:52 +02:00
follow wxiaoguang's suggestion
This commit is contained in:
parent
ecc5b72800
commit
6dac5a4602
@ -246,9 +246,7 @@ func SettingsChangeVisibilityPost(ctx *context.Context) {
|
|||||||
|
|
||||||
if err := org_service.ChangeOrganizationVisibility(ctx, ctx.Org.Organization, visibility); err != nil {
|
if err := org_service.ChangeOrganizationVisibility(ctx, ctx.Org.Organization, visibility); err != nil {
|
||||||
log.Error("ChangeOrganizationVisibility: %v", err)
|
log.Error("ChangeOrganizationVisibility: %v", err)
|
||||||
ctx.JSON(http.StatusInternalServerError, map[string]any{
|
ctx.JSONError(ctx.Tr("error.occurred"))
|
||||||
"err": http.StatusText(http.StatusInternalServerError),
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user