Skip to content

Commit

Permalink
Fix join membership auth rules when join_rule is knock (matrix-org#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir authored and turt2live committed May 9, 2022
1 parent fd2340a commit 9b0bd09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/room_versions/newsfragments/3737.clarification
@@ -0,0 +1 @@
Fix join membership auth rules when `join_rule` is `knock`.
4 changes: 2 additions & 2 deletions content/rooms/fragments/v8-auth-rules.md
Expand Up @@ -53,8 +53,8 @@ The rules are as follows:
`state_key` is the creator, 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` then allow if membership
state is `invite` or `join`.
4. If the `join_rule` is `invite` or `knock` then allow if
membership state is `invite` or `join`.
5. If the `join_rule` is `restricted`:
1. If membership state is `join` or `invite`, allow.
2. If the `join_authorised_via_users_server` key in `content`
Expand Down
4 changes: 2 additions & 2 deletions content/rooms/v7.md
Expand Up @@ -82,8 +82,8 @@ The rules are as follows:
`state_key` is the creator, 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` then allow if membership
state is `invite` or `join`.
4. If the `join_rule` is `invite` or `knock` then allow if
membership state is `invite` or `join`.
5. If the `join_rule` is `public`, allow.
6. Otherwise, reject.
3. If `membership` is `invite`:
Expand Down

0 comments on commit 9b0bd09

Please sign in to comment.