mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Remote banned user is kicked and may not rejoin until unbanned
This commit is contained in:
parent
bbe7d37928
commit
0576d95b5e
|
|
@ -235,7 +235,7 @@ func OnIncomingStateTypeRequest(
|
|||
}
|
||||
// If the user has never been in the room then stop at this point.
|
||||
// We won't tell the user about a room they have never joined.
|
||||
if !membershipRes.HasBeenInRoom {
|
||||
if !membershipRes.HasBeenInRoom || membershipRes.Membership == "ban" {
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusForbidden,
|
||||
JSON: jsonerror.Forbidden(fmt.Sprintf("Unknown room %q or user %q has never joined this room", roomID, device.UserID)),
|
||||
|
|
|
|||
|
|
@ -596,4 +596,5 @@ Device list doesn't change if remote server is down
|
|||
/context/ on joined room works
|
||||
/context/ on non world readable room does not work
|
||||
/context/ returns correct number of events
|
||||
/context/ with lazy_load_members filter works
|
||||
/context/ with lazy_load_members filter works
|
||||
Remote banned user is kicked and may not rejoin until unbanned
|
||||
|
|
|
|||
Loading…
Reference in a new issue