0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-18 07:52:56 +01:00

Missing yield on guest access auth check

Needs matrix-org/sytest#125 to land first
This commit is contained in:
Mark Haines 2015-12-23 14:10:06 +00:00 committed by review.rocks
parent 7df276d219
commit f3948e001f

View file

@ -349,7 +349,7 @@ class Notifier(object):
room_ids = []
if is_guest:
if guest_room_id:
if not self._is_world_readable(guest_room_id):
if not (yield self._is_world_readable(guest_room_id)):
raise AuthError(403, "Guest access not allowed")
room_ids = [guest_room_id]
else: