mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
Merge pull request #458 from matrix-org/markjh/guest_auth
Missing yield on guest access auth check Needs matrix-org/sytest#125 to land first
This commit is contained in:
commit
ba39d3d5d7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue