mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Make same membership transitions 403, add sytests (#1161)
* Make same membership transitions 403, add sytests * Update blacklist
This commit is contained in:
parent
002fe05a20
commit
a06d0921c9
3 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue