Fix a bug when check if owner is active (#13614)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2020-11-18 11:59:54 +02:00
1 parent f845fa0ddc
commit 6edd6d5a24
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",