0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-18 13:02:54 +02:00

follow wxiaoguang's suggestion

This commit is contained in:
Lunny Xiao 2025-07-08 19:00:23 -07:00
parent ecc5b72800
commit 6dac5a4602
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -246,9 +246,7 @@ func SettingsChangeVisibilityPost(ctx *context.Context) {
if err := org_service.ChangeOrganizationVisibility(ctx, ctx.Org.Organization, visibility); err != nil {
log.Error("ChangeOrganizationVisibility: %v", err)
ctx.JSON(http.StatusInternalServerError, map[string]any{
"err": http.StatusText(http.StatusInternalServerError),
})
ctx.JSONError(ctx.Tr("error.occurred"))
return
}