mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Move 9.1 to 9.3, add 9.1 and 9.2 for integer enforcement
This commit is contained in:
parent
1f3dc21432
commit
017461823b
|
|
@ -185,9 +185,16 @@ The rules are as follows:
|
||||||
8. If the event has a `state_key` that starts with an `@` and does not
|
8. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
9. If type is `m.room.power_levels`:
|
9. If type is `m.room.power_levels`:
|
||||||
1. If `users` key in `content` is not a dictionary with keys that
|
1. {{< added-in this="true" >}}
|
||||||
are valid user IDs with values that are integers (or a string
|
If any of the keys `users_default`, `events_default`, `state_default`,
|
||||||
that is an integer), reject.
|
`ban`, `redact`, `kick`, or `invite` in `content` are present and
|
||||||
|
not an integer, reject.
|
||||||
|
2. {{< added-in this="true" >}}
|
||||||
|
If any of the keys `users`, `events`, or `notifications` in `content`
|
||||||
|
are present and not a dictionary with string keys and values that
|
||||||
|
are integers, reject.
|
||||||
|
3. If `users` key in `content` is not a dictionary with keys that
|
||||||
|
are valid user IDs with values that are integers, reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
allow.
|
allow.
|
||||||
3. For the keys `users_default`, `events_default`, `state_default`,
|
3. For the keys `users_default`, `events_default`, `state_default`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue