Skip to content

Commit

Permalink
Clarify that invite->knock is not a valid transition (#1717)
Browse files Browse the repository at this point in the history
This reverts #1175

See #1710
  • Loading branch information
kegsay committed Feb 21, 2024
1 parent 170626d commit c4e69d8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/room_versions/newsfragments/1717.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
For room versions 7 through 11: Clarify that `invite->knock` is not a legal transition.
3 changes: 2 additions & 1 deletion content/rooms/fragments/v8-auth-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ The rules are as follows:
7. If `membership` is `knock`:
1. If the `join_rule` is anything other than `knock`, reject.
2. If `sender` does not match `state_key`, reject.
3. If the `sender`'s current membership is not `ban` or `join`, allow.
3. If the `sender`'s current membership is not `ban`, `invite`,
or `join`, allow.
4. Otherwise, reject.
8. Otherwise, the membership is unknown. Reject.
5. If the `sender`'s current membership state is not `join`, reject.
Expand Down
3 changes: 2 additions & 1 deletion content/rooms/v10.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ The rules are as follows:
If the `join_rule` is anything other than `knock` or
`knock_restricted`, reject.
2. If `sender` does not match `state_key`, reject.
3. If the `sender`'s current membership is not `ban` or `join`, allow.
3. If the `sender`'s current membership is not `ban`, `invite`,
or `join`, allow.
4. Otherwise, reject.
8. Otherwise, the membership is unknown. Reject.
5. If the `sender`'s current membership state is not `join`, reject.
Expand Down
3 changes: 2 additions & 1 deletion content/rooms/v11.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ The rules are as follows:
1. If the `join_rule` is anything other than `knock` or
`knock_restricted`, reject.
2. If `sender` does not match `state_key`, reject.
3. If the `sender`'s current membership is not `ban` or `join`, allow.
3. If the `sender`'s current membership is not `ban`, `invite`,
or `join`, allow.
4. Otherwise, reject.
8. Otherwise, the membership is unknown. Reject.
5. If the `sender`'s current membership state is not `join`, reject.
Expand Down
3 changes: 2 additions & 1 deletion content/rooms/v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ The rules are as follows:
If `membership` is `knock`:
1. If the `join_rule` is anything other than `knock`, reject.
2. If `sender` does not match `state_key`, reject.
3. If the `sender`'s current membership is not `ban` or `join`, allow.
3. If the `sender`'s current membership is not `ban`, `invite`,
or `join`, allow.
4. Otherwise, reject.
7. Otherwise, the membership is unknown. Reject.
5. If the `sender`'s current membership state is not `join`, reject.
Expand Down

0 comments on commit c4e69d8

Please sign in to comment.