mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-12 04:54:56 -04:00
Merge remote-tracking branch 'origin/develop' into markjh/guest_access
Conflicts: synapse/api/filtering.py
This commit is contained in:
commit
c058625959
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ class Filtering(object):
|
||||||
def _check_definition_room_lists(self, definition):
|
def _check_definition_room_lists(self, definition):
|
||||||
"""Check that "rooms" and "not_rooms" are lists of room ids if they
|
"""Check that "rooms" and "not_rooms" are lists of room ids if they
|
||||||
are present
|
are present
|
||||||
|
|
||||||
|
Args:
|
||||||
|
definition(dict): The filter definition
|
||||||
|
Raises:
|
||||||
|
SynapseError: If there was a problem with this definition.
|
||||||
"""
|
"""
|
||||||
# check rooms are valid room IDs
|
# check rooms are valid room IDs
|
||||||
room_id_keys = ["rooms", "not_rooms"]
|
room_id_keys = ["rooms", "not_rooms"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue