mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 03:52:36 +02:00
Fix a bug when check if owner is active (#13614)
This commit is contained in:
1 parent
f845fa0ddc
commit
6edd6d5a24
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user