|
|
|
@ -40,12 +40,6 @@ in [room version 5](/rooms/v5).
|
|
|
|
|
|
|
|
|
|
### Authorization rules
|
|
|
|
|
|
|
|
|
|
`m.room.redaction` events are not explicitly part of the auth rules.
|
|
|
|
|
They are still subject to the minimum power level rules, but should always
|
|
|
|
|
fall into "10. Otherwise, allow". Instead of being authorized at the time
|
|
|
|
|
of receipt, they are authorized at a later stage: see the
|
|
|
|
|
[Handling Redactions](#handling-redactions) section below for more information.
|
|
|
|
|
|
|
|
|
|
{{< added-in this=true >}} Rule 4, which related specifically to events
|
|
|
|
|
of type `m.room.aliases`, is removed. `m.room.aliases` events must still pass
|
|
|
|
|
authorization checks relating to state events.
|
|
|
|
@ -71,6 +65,18 @@ For example, mentions of the `sender`'s power level can also refer to
|
|
|
|
|
the default power level for users in the room.
|
|
|
|
|
{{% /boxes/note %}}
|
|
|
|
|
|
|
|
|
|
{{% boxes/note %}}
|
|
|
|
|
`m.room.redaction` events are subject to auth rules in the same way as any other event.
|
|
|
|
|
In practice, that means they will normally be allowed by the auth rules, unless the
|
|
|
|
|
`m.room.power_levels` event sets a power level requirement for `m.room.redaction`
|
|
|
|
|
events via the `events` or `events_default` properties. In particular, the _redact
|
|
|
|
|
level_ is **not** considered by the auth rules.
|
|
|
|
|
|
|
|
|
|
The ability to send a redaction event does not mean that the redaction itself should
|
|
|
|
|
be performed. Receiving servers must perform additional checks, as described in
|
|
|
|
|
the [Handling Redactions](#handling-redactions) section.
|
|
|
|
|
{{% /boxes/note %}}
|
|
|
|
|
|
|
|
|
|
The rules are as follows:
|
|
|
|
|
|
|
|
|
|
1. If type is `m.room.create`:
|
|
|
|
|