1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-03 08:08:36 +00:00

Fix a bug when check if owner is active (#13613)

This commit is contained in:
Lunny Xiao
2020-11-18 17:59:24 +08:00
committed by GitHub
parent ed3a4cd103
commit bcde51f4c2
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ func ServCommand(ctx *macaron.Context) {
})
return
}
if !owner.IsActive {
if !owner.IsOrganization() && !owner.IsActive {
ctx.JSON(http.StatusForbidden, map[string]interface{}{
"results": results,
"type": "ForbiddenError",