aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api/perform.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-24 18:19:14 +0100
committerGitHub <noreply@github.com>2020-06-24 18:19:14 +0100
commita06d0921c9a8551a7f488ad8ae972f1b982a49c1 (patch)
treee0cbfad365c35aaba411be61fae9334674a7b37c /roomserver/api/perform.go
parent002fe05a203e316818c108a0dac438e5cd796a68 (diff)
Make same membership transitions 403, add sytests (#1161)
* Make same membership transitions 403, add sytests * Update blacklist
Diffstat (limited to 'roomserver/api/perform.go')
-rw-r--r--roomserver/api/perform.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/roomserver/api/perform.go b/roomserver/api/perform.go
index 0b8e6df2..12ba1516 100644
--- a/roomserver/api/perform.go
+++ b/roomserver/api/perform.go
@@ -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)
}