From 858b7c5e6f1384a1733dec784d819792fea1622c Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 9 Nov 2021 10:32:12 +0000 Subject: [PATCH] CS API /join should really only return 403 --- clientapi/routing/joinroom.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clientapi/routing/joinroom.go b/clientapi/routing/joinroom.go index 578aaec5..8c77f749 100644 --- a/clientapi/routing/joinroom.go +++ b/clientapi/routing/joinroom.go @@ -81,6 +81,7 @@ func JoinRoomByIDOrAlias( defer close(done) rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes) if joinRes.Error != nil { + joinRes.Error.Code = roomserverAPI.PerformErrorNotAllowed done <- joinRes.Error.JSONResponse() } else { done <- util.JSONResponse{