Remove declared-invalid invite->knock restriction from auth rules (#1175)

* Remove declared-invalid `invite->knock` restriction from auth rules

* Changelog

* real changelog
This commit is contained in:
Travis Ralston 2022-08-02 19:20:52 -04:00 committed by GitHub
parent f24cad1653
commit b36d4eff7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 6 deletions

View file

@ -118,8 +118,7 @@ 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`, `invite`,
or `join`, allow.
3. If the `sender`'s current membership is not `ban` 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.