Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Update synapse/third_party_rules/access_rules.py
Browse files Browse the repository at this point in the history
Co-authored-by: giomfo <giom@matrix.org>
  • Loading branch information
anoadragon453 and giomfo committed Sep 11, 2020
1 parent a903652 commit 4e3163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/third_party_rules/access_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ async def check_room_can_be_added_to_public_rooms_directory(
"""
# We need to know the rule to apply when processing the event types below.
rule = self._get_rule_from_state(state_events)
return rule != AccessRules.UNRESTRICTED
return rule == AccessRules.RESTRICTED

async def _on_rules_change(
self, event: EventBase, state_events: StateMap[EventBase]
Expand Down

0 comments on commit 4e3163d

Please sign in to comment.