|
|
|
@ -105,7 +105,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 |
|
|
|
|
} |
|
|
|
|