mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
CS API /join should really only return 403
This commit is contained in:
parent
8ad188109b
commit
858b7c5e6f
1 changed files with 1 additions and 0 deletions
|
@ -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