CS API /join should really only return 403

This commit is contained in:
Neil Alexander 2021-11-09 10:32:12 +00:00
parent 8ad188109b
commit 858b7c5e6f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -81,6 +81,7 @@ func JoinRoomByIDOrAlias(
defer close(done) defer close(done)
rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes) rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes)
if joinRes.Error != nil { if joinRes.Error != nil {
joinRes.Error.Code = roomserverAPI.PerformErrorNotAllowed
done <- joinRes.Error.JSONResponse() done <- joinRes.Error.JSONResponse()
} else { } else {
done <- util.JSONResponse{ done <- util.JSONResponse{