summaryrefslogtreecommitdiffstats
path: root/routers/private
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-11-18 17:58:25 +0800
committerGitHub <noreply@github.com>2020-11-18 11:58:25 +0200
commit5a991ec519e5dd309dd42859fb4e43eb4a5f4f79 (patch)
tree8c88357718c7c4c42e1cb2d92ada6266fbad9585 /routers/private
parent76cdf3b7af33ae3cd16d8cae7390dc94c906e64a (diff)
downloadgitea-5a991ec519e5dd309dd42859fb4e43eb4a5f4f79.tar.gz
gitea-5a991ec519e5dd309dd42859fb4e43eb4a5f4f79.zip
Fix a bug when check if owner is active (#13612)
Diffstat (limited to 'routers/private')
-rw-r--r--routers/private/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/private/serv.go b/routers/private/serv.go
index 2697666b87..182fe27245 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",