From f06bd7fd00069c3c0424c1adefb06dddbff5696b Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 6 Oct 2020 11:46:02 +0100 Subject: wip access rules modification --- synapse/api/auth.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synapse/api') diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 1071a0576e..98bb1aaee5 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -89,6 +89,9 @@ class Auth: auth_events = await self.store.get_events(auth_events_ids) auth_events = {(e.type, e.state_key): e for e in auth_events.values()} + # TODO: + # Would need to thread original_event everywhere we call event_auth.check + # Ask in #synapse-dev about this first... room_version_obj = KNOWN_ROOM_VERSIONS[room_version] event_auth.check( room_version_obj, event, auth_events=auth_events, do_sig_check=do_sig_check -- cgit 1.4.1