mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Fix backfill to work. Add auth to backfill request
This commit is contained in:
parent
65f846ade0
commit
6447db063a
6 changed files with 56 additions and 18 deletions
|
@ -104,6 +104,12 @@ class Auth(object):
|
|||
pass
|
||||
defer.returnValue(None)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def check_host_in_room(self, room_id, host):
|
||||
joined_hosts = yield self.store.get_joined_hosts_for_room(room_id)
|
||||
|
||||
defer.returnValue(host in joined_hosts)
|
||||
|
||||
def check_event_sender_in_room(self, event):
|
||||
key = (RoomMemberEvent.TYPE, event.user_id, )
|
||||
member_event = event.state_events.get(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue