From d5843b5b814e83ffce733cd28ac76b818c0103d5 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 17 Nov 2021 12:20:30 -0800 Subject: [PATCH 1/2] Allow guests to send state events --- synapse/rest/client/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 03a353d53c2c..0cd5d5c98467 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -187,7 +187,7 @@ async def on_PUT( state_key: str, txn_id: Optional[str] = None, ) -> Tuple[int, JsonDict]: - requester = await self.auth.get_user_by_req(request) + requester = await self.auth.get_user_by_req(request, allow_guest=True) if txn_id: set_tag("txn_id", txn_id) From 6064d25b5c299aee670e8507840a2c909ac7f611 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 18 Nov 2021 12:22:43 -0800 Subject: [PATCH 2/2] Add changelog --- changelog.d/11378.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/11378.feature diff --git a/changelog.d/11378.feature b/changelog.d/11378.feature new file mode 100644 index 000000000000..524bf84f323e --- /dev/null +++ b/changelog.d/11378.feature @@ -0,0 +1 @@ +Allow guests to send state events per [MSC3419](/~https://github.com/matrix-org/matrix-doc/pull/3419). \ No newline at end of file