mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Make sure that invalid join rules returns a 403
This commit is contained in:
parent
3300effe39
commit
9ea8dc71eb
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ func (r *Joiner) performJoinRoomByID(
|
|||
// builder content.
|
||||
if restricted, roomIDs, rerr := r.checkIfRestrictedJoin(ctx, req); rerr != nil {
|
||||
return "", "", &rsAPI.PerformError{
|
||||
Code: rsAPI.PerformErrorBadRequest,
|
||||
Code: rsAPI.PerformErrorNotAllowed,
|
||||
Msg: rerr.Error(),
|
||||
}
|
||||
} else if restricted {
|
||||
|
|
Loading…
Reference in a new issue