From 934785866f0be0261fe313105d3d35c54503b426 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Tue, 2 Mar 2021 11:07:20 +0000 Subject: Allow knock->knock transitions (#86) Small change to the event auth rules that allows transitioning from knock->knock (in case you want to update your knock reason, or change profile information etc). Coincides with the same commit in [the mainline PR](https://github.com/matrix-org/synapse/pull/6739) and [this update on MSC2403](https://github.com/matrix-org/matrix-doc/pull/2403/commits/49a72862a93d814219968cff814ff63926181645). --- synapse/event_auth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/synapse/event_auth.py b/synapse/event_auth.py index 6109490b99..498a699290 100644 --- a/synapse/event_auth.py +++ b/synapse/event_auth.py @@ -355,8 +355,6 @@ def _is_membership_change_allowed( raise AuthError(403, "You cannot knock for other users") elif target_in_room: raise AuthError(403, "You cannot knock on a room you are already in") - elif caller_knocked: - raise AuthError(403, "You already have a pending knock for this room") elif caller_invited: raise AuthError(403, "You are already invited to this room") elif target_banned: -- cgit 1.5.1