mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 13:54:14 -04:00
Allow non-guests to peek on rooms using /events
This commit is contained in:
parent
ea5eea2424
commit
da417aa56d
8 changed files with 107 additions and 84 deletions
|
@ -43,6 +43,7 @@ class EventStreamRestServlet(ClientV1RestServlet):
|
|||
if is_guest:
|
||||
if "room_id" not in request.args:
|
||||
raise SynapseError(400, "Guest users must specify room_id param")
|
||||
if "room_id" in request.args:
|
||||
room_id = request.args["room_id"][0]
|
||||
try:
|
||||
handler = self.handlers.event_stream_handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue