Skip to content

Commit

Permalink
Allow knock->knock transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 26, 2021
1 parent e790ad2 commit 49a7286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proposals/2403-knock.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ rules from room version 6](https://matrix.org/docs/spec/rooms/v6#authorization-r
f. If `membership` is `knock`:
i. If the `join_rule` is anything other than `knock`, reject.
ii. If `sender` does not match `state_key`, reject.
iii. If the `sender`'s membership is not `ban`, `knock`, `invite` or `join`, allow.
iii. If the `sender`'s membership is not `ban`, `invite` or `join`, allow.
iv. Otherwise, reject.
```

Expand All @@ -66,9 +66,9 @@ Note that:
the `state_key` is the invitee.
- f.ii is justified as one user should not be able to knock on behalf of
another user.
- a.iii is justified as knocks should not be allowed if the knocking user
has been banned from the room, has already knocked on the room, is
invited to the room or if they are already in the room.
- f.iii is justified as knocks should not be allowed if the knocking user
has been banned from the room, is invited to the room or if they are already
in the room.
- Knocks are not restricted by power level like invites are. The `join_rules`
are already used to enforce whether someone can or cannot knock. However,
power level rules do apply when approving or denying the knock, as discussed
Expand Down

0 comments on commit 49a7286

Please sign in to comment.