PDU check 5 should consult state before an event (#1070)

This commit is contained in:
David Robertson 2022-05-23 18:22:33 +01:00 committed by GitHub
parent 58f960e5cc
commit c4e54509db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Clarify that checks on PDUs should refer to the state _before_ an event.

View file

@ -364,7 +364,7 @@ server must ensure that the event:
further.
4. Passes authorization rules based on the event's auth events,
otherwise it is rejected.
5. Passes authorization rules based on the state at the event,
5. Passes authorization rules based on the state before the event,
otherwise it is rejected.
6. Passes authorization rules based on the current state of the room,
otherwise it is "soft failed".