summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-07-03 12:05:56 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-07-03 12:05:56 +0100
commitaa3ba4193338d7dc1fe3dbbe2743581e7d66cced (patch)
tree8e695d66aba100cff6cc7af275741ff7eace209d
parentRefactor part of the access rules module (diff)
downloadsynapse-aa3ba4193338d7dc1fe3dbbe2743581e7d66cced.tar.xz
Default return value for events we're not interested in
-rw-r--r--synapse/third_party_rules/access_rules.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/third_party_rules/access_rules.py b/synapse/third_party_rules/access_rules.py
index d2530645c4..5307a15097 100644
--- a/synapse/third_party_rules/access_rules.py
+++ b/synapse/third_party_rules/access_rules.py
@@ -201,6 +201,8 @@ class RoomAccessRules(object):
         if event.type == EventTypes.Member or event.type == EventTypes.ThirdPartyInvite:
             return self._on_membership_or_invite(event, rule, state_events)
 
+        return True
+
     def _on_rules_change(self, event, state_events):
         """Implement the checks and behaviour specified on allowing or forbidding a new
         im.vector.room.access_rules event.