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.
|
// builder content.
|
||||||
if restricted, roomIDs, rerr := r.checkIfRestrictedJoin(ctx, req); rerr != nil {
|
if restricted, roomIDs, rerr := r.checkIfRestrictedJoin(ctx, req); rerr != nil {
|
||||||
return "", "", &rsAPI.PerformError{
|
return "", "", &rsAPI.PerformError{
|
||||||
Code: rsAPI.PerformErrorBadRequest,
|
Code: rsAPI.PerformErrorNotAllowed,
|
||||||
Msg: rerr.Error(),
|
Msg: rerr.Error(),
|
||||||
}
|
}
|
||||||
} else if restricted {
|
} else if restricted {
|
||||||
|
|
Loading…
Reference in a new issue