diff options
author | PeerD <github@spy.de> | 2020-02-06 15:15:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 14:15:29 +0000 |
commit | 99fcc96289f673f96f2d180a84df84f6b8a85521 (patch) | |
tree | 6c586db0d6e4c57497f9b43c0a23b501bcc82a29 /synapse/events | |
parent | Reduce amount of logging at INFO level. (#6862) (diff) | |
download | synapse-99fcc96289f673f96f2d180a84df84f6b8a85521.tar.xz |
Third party event rules Update (#6781)
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/third_party_rules.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py index 86f7e5f8aa..459132d388 100644 --- a/synapse/events/third_party_rules.py +++ b/synapse/events/third_party_rules.py @@ -74,15 +74,16 @@ class ThirdPartyEventRules(object): is_requester_admin (bool): If the requester is an admin Returns: - defer.Deferred + defer.Deferred[bool]: Whether room creation is allowed or denied. """ if self.third_party_rules is None: - return + return True - yield self.third_party_rules.on_create_room( + ret = yield self.third_party_rules.on_create_room( requester, config, is_requester_admin ) + return ret @defer.inlineCallbacks def check_threepid_can_be_invited(self, medium, address, room_id): |