Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit afa0a5e

Browse files
authored
Allow guests to send state events (#11378)
1 parent d93362d commit afa0a5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/11378.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow guests to send state events per [MSC3419](https://github.com/matrix-org/matrix-doc/pull/3419).

synapse/rest/client/room.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def on_PUT(
187187
state_key: str,
188188
txn_id: Optional[str] = None,
189189
) -> Tuple[int, JsonDict]:
190-
requester = await self.auth.get_user_by_req(request)
190+
requester = await self.auth.get_user_by_req(request, allow_guest=True)
191191

192192
if txn_id:
193193
set_tag("txn_id", txn_id)

0 commit comments

Comments
 (0)