diff --git a/routers/private/serv.go b/routers/private/serv.go index eba431785b..b6dd2c361e 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -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", diff --git a/routers/repo/http.go b/routers/repo/http.go index 8cb4827f48..a1dcd65e1f 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -104,7 +104,7 @@ func HTTP(ctx *context.Context) { ctx.NotFoundOrServerError("GetUserByName", models.IsErrUserNotExist, err) return } - if !owner.IsActive { + if !owner.IsOrganization() && !owner.IsActive { ctx.HandleText(http.StatusForbidden, "Repository cannot be accessed. You cannot push or open issues/pull-requests.") return }