Merge pull request #1026 from matrix-org/rav/power_levels_doc

Clarify what happens when there is no power_levels event
pull/977/head
Richard van der Hoff 7 years ago committed by GitHub
commit 23e2f8986c

@ -37,6 +37,9 @@ paths:
the new room, including checking power levels for each event. It MUST the new room, including checking power levels for each event. It MUST
apply the events implied by the request in the following order: apply the events implied by the request in the following order:
0. A default ``m.room.power_levels`` event, giving the room creator
(and not other members) permission to send state events.
1. Events set by ``presets``. 1. Events set by ``presets``.
2. Events listed in ``initial_state``, in the order that they are 2. Events listed in ``initial_state``, in the order that they are

@ -89,6 +89,9 @@
(`#750 <https://github.com/matrix-org/matrix-doc/pull/750>`_). (`#750 <https://github.com/matrix-org/matrix-doc/pull/750>`_).
- ``GET /user/{userId}/filter/{filterId}`` requires authentication - ``GET /user/{userId}/filter/{filterId}`` requires authentication
(`#1003 <https://github.com/matrix-org/matrix-doc/pull/1003>`_). (`#1003 <https://github.com/matrix-org/matrix-doc/pull/1003>`_).
- Add some clarifying notes on the behaviour of rooms with no
``m.room.power_levels`` event
(`#1026 <https://github.com/matrix-org/matrix-doc/pull/1026>`_).
r0.2.0 r0.2.0
====== ======

@ -29,6 +29,17 @@ description: |-
to 50 if they are not specified in the ``m.room.power_levels`` event, or if 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. the room contains no ``m.room.power_levels`` event.
.. NOTE::
As noted above, in the absence of an ``m.room.power_levels`` event, the
``state_default`` is 0, and all users are considered to have power level 0.
That means that **any** member of the room can send an
``m.room.power_levels`` event, changing the permissions in the room.
Server implementations should therefore ensure that each room has an
``m.room.power_levels`` event as soon as it is created. See also the
documentation of the ``/createRoom`` API.
properties: properties:
content: content:
properties: properties:

@ -9,7 +9,8 @@
{% endif -%} {% endif -%}
{{event.desc | wrap(80)}} {{event.desc}}
{% for table in event.content_fields %} {% for table in event.content_fields %}
{{"``"+table.title+"``" if table.title else "" }} {{"``"+table.title+"``" if table.title else "" }}

Loading…
Cancel
Save