Attempt to differentiate between m.room.redaction event PL and redact PL

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/977/head
Aaron Raimist 4 years ago
parent 4414d44f34
commit a82b657a0a
No known key found for this signature in database
GPG Key ID: 37419210002890EF

@ -36,9 +36,12 @@ paths:
This cannot be undone.
Any user with a power level greater than or equal to the ``redact`` power level
of the room may redact events there. Additionally, server administrators may
redact messages sent by their server.
Any user with a power level greater than or equal to the ``m.room.redaction``
event power level may send redaction events in the room. If the user's power
level greater is also greater than or equal to the ``redact`` power level
of the room, the user may redact events sent by other users.
Server administrators may redact events sent by users on their server.
operationId: redactEvent
security:
- accessToken: []

@ -25,10 +25,11 @@ description: |-
``events_default`` are 0.
The power level required to invite a user to the room, kick a user from the
room, ban a user from the room, or redact an event, is defined by ``invite``,
``kick``, ``ban``, and ``redact``, respectively. Each of these levels defaults
to 50 if they are not specified in the ``m.room.power_levels`` event, or if
the room contains no ``m.room.power_levels`` event.
room, ban a user from the room, or redact an event sent by another user, is
defined by ``invite``, ``kick``, ``ban``, and ``redact``, respectively. Each
of these levels defaults to 50 if they are not specified in the
``m.room.power_levels`` event, or if the room contains no ``m.room.power_levels``
event.
.. NOTE::
@ -65,7 +66,7 @@ properties:
description: The level required to kick a user. Defaults to 50 if unspecified.
type: integer
redact:
description: The level required to redact an event. Defaults to 50 if unspecified.
description: The level required to redact an event sent by another user. Defaults to 50 if unspecified.
type: integer
state_default:
description: |-

Loading…
Cancel
Save