Skip to content

Commit b36d4ef

Browse files
authored
Remove declared-invalid invite->knock restriction from auth rules (#1175)
* Remove declared-invalid `invite->knock` restriction from auth rules * Changelog * real changelog
1 parent f24cad1 commit b36d4ef

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
For room versions 7 through 10: Clarify that `invite->knock` is actually a legal transition.

content/rooms/fragments/v8-auth-rules.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ The rules are as follows:
118118
7. If `membership` is `knock`:
119119
1. If the `join_rule` is anything other than `knock`, reject.
120120
2. If `sender` does not match `state_key`, reject.
121-
3. If the `sender`'s current membership is not `ban`, `invite`,
122-
or `join`, allow.
121+
3. If the `sender`'s current membership is not `ban` or `join`, allow.
123122
4. Otherwise, reject.
124123
8. Otherwise, the membership is unknown. Reject.
125124
5. If the `sender`'s current membership state is not `join`, reject.

content/rooms/v10.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ The rules are as follows:
193193
If the `join_rule` is anything other than `knock` or
194194
`knock_restricted`, reject.
195195
2. If `sender` does not match `state_key`, reject.
196-
3. If the `sender`'s current membership is not `ban`, `invite`,
197-
or `join`, allow.
196+
3. If the `sender`'s current membership is not `ban` or `join`, allow.
198197
4. Otherwise, reject.
199198
8. Otherwise, the membership is unknown. Reject.
200199
5. If the `sender`'s current membership state is not `join`, reject.

content/rooms/v7.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ The rules are as follows:
135135
6. If `membership` is `knock`:
136136
1. If the `join_rule` is anything other than `knock`, reject.
137137
2. If `sender` does not match `state_key`, reject.
138-
3. If the `sender`'s current membership is not `ban`, `invite`,
139-
or `join`, allow.
138+
3. If the `sender`'s current membership is not `ban` or `join`, allow.
140139
4. Otherwise, reject.
141140
7. Otherwise, the membership is unknown. Reject.
142141
5. If the `sender`'s current membership state is not `join`, reject.

0 commit comments

Comments
 (0)