mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fix a bug when check if owner is active (#13612)
This commit is contained in:
parent
76cdf3b7af
commit
5a991ec519
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue