mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 01:13:50 +01:00
Allow guests to send state events (#11378)
This commit is contained in:
parent
d93362d87f
commit
afa0a5e4fc
2 changed files with 2 additions and 1 deletions
1
changelog.d/11378.feature
Normal file
1
changelog.d/11378.feature
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Allow guests to send state events per [MSC3419](https://github.com/matrix-org/matrix-doc/pull/3419).
|
|
@ -187,7 +187,7 @@ class RoomStateEventRestServlet(TransactionRestServlet):
|
||||||
state_key: str,
|
state_key: str,
|
||||||
txn_id: Optional[str] = None,
|
txn_id: Optional[str] = None,
|
||||||
) -> Tuple[int, JsonDict]:
|
) -> 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:
|
if txn_id:
|
||||||
set_tag("txn_id", txn_id)
|
set_tag("txn_id", txn_id)
|
||||||
|
|
Loading…
Reference in a new issue