Make same membership transitions 403, add sytests (#1161)

* Make same membership transitions 403, add sytests

* Update blacklist
This commit is contained in:
Kegsay 2020-06-24 18:19:14 +01:00 committed by GitHub
parent 002fe05a20
commit a06d0921c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,11 @@ func (p *PerformError) JSONResponse() util.JSONResponse {
Code: http.StatusForbidden,
JSON: jsonerror.Forbidden(p.Msg),
}
case PerformErrorNoOperation:
return util.JSONResponse{
Code: http.StatusForbidden,
JSON: jsonerror.Forbidden(p.Msg),
}
default:
return util.ErrorResponse(p)
}