From 336b855d7ac60dcb12b9a8a1897cc5727cc603f8 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 4 Dec 2024 17:40:27 +0100 Subject: [PATCH] Clarify rule 4.3.1 of the auth rules in room version 11 (#2024) Signed-off-by: Denis Kasak --- changelogs/room_versions/newsfragments/2024.clarification | 1 + content/rooms/v11.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/room_versions/newsfragments/2024.clarification diff --git a/changelogs/room_versions/newsfragments/2024.clarification b/changelogs/room_versions/newsfragments/2024.clarification new file mode 100644 index 000000000..d346cc20c --- /dev/null +++ b/changelogs/room_versions/newsfragments/2024.clarification @@ -0,0 +1 @@ +Clarify rule 4.3.1 of the auth rules in room version 11 to state which event's `sender` the `state_key` needs to match. diff --git a/content/rooms/v11.md b/content/rooms/v11.md index 08edfc012..1be3a4055 100644 --- a/content/rooms/v11.md +++ b/content/rooms/v11.md @@ -144,7 +144,7 @@ The rules are as follows: 3. If `membership` is `join`: 1. {{% changed-in v=11 %}} If the only previous event is an `m.room.create` and the - `state_key` is the sender, allow. + `state_key` is the sender of the `m.room.create`, allow. 2. If the `sender` does not match `state_key`, reject. 3. If the `sender` is banned, reject. 4. If the `join_rule` is `invite` or `knock` then allow if