Skip to content

Commit 7dcff8f

Browse files
committed
Disallow invite->knock membership changes
1 parent 6c75b83 commit 7dcff8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proposals/2403-knock.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ rules from room version 5 are:
5454
a. If `membership` is `knock`:
5555
i. If the `join_rule` is anything other than `knock`, reject.
5656
ii. If `sender` does not match `state_key`, reject.
57-
iii. If the `sender`'s membership is not `ban`, `knock` or `join`, allow.
57+
iii. If the `sender`'s membership is not `ban`, `knock`, `invite` or `join`, allow.
5858
iv. Otherwise, reject.
5959
```
6060

@@ -67,7 +67,8 @@ rules from room version 5 are:
6767
- a.ii is justified as one user should not be able to knock on behalf of
6868
another user.
6969
- a.iii is justified as knocks should not be allowed if the knocking user
70-
has been banned from the room, or if they are already in the room.
70+
has been banned from the room, has already knocked on the room, is
71+
invited to the room or if they are already in the room.
7172
- Knocks are not restricted by power level like invites are. The `join_rules`
7273
are already used to enforce whether someone can or cannot knock.
7374

0 commit comments

Comments
 (0)