diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-11-18 17:58:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 11:58:25 +0200 |
commit | 5a991ec519e5dd309dd42859fb4e43eb4a5f4f79 (patch) | |
tree | 8c88357718c7c4c42e1cb2d92ada6266fbad9585 /routers/repo/http.go | |
parent | 76cdf3b7af33ae3cd16d8cae7390dc94c906e64a (diff) | |
download | gitea-5a991ec519e5dd309dd42859fb4e43eb4a5f4f79.tar.gz gitea-5a991ec519e5dd309dd42859fb4e43eb4a5f4f79.zip |
Fix a bug when check if owner is active (#13612)
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 9e94d28eab..40c1f36bc3 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -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 } |