mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 01:33:10 -06:00
CS API /join should really only return 403
This commit is contained in:
parent
8ad188109b
commit
858b7c5e6f
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue