Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

CreateRoom not respecting 'users' power_level_content_override #16718

Closed
NiallBunting opened this issue Dec 3, 2023 · 0 comments
Closed

CreateRoom not respecting 'users' power_level_content_override #16718

NiallBunting opened this issue Dec 3, 2023 · 0 comments

Comments

@NiallBunting
Copy link

NiallBunting commented Dec 3, 2023

Description

I'm sending the following request:

  matrix_r = requests.post(
    MATRIX_BASE_URL + '/_matrix/client/v3/createRoom',
    json = {
      "invite": ['@<user1>:<host>', '@<user2>:<host>'],
      "name": 'room name',
      "room_alias_name": "alias",
      "creation_content": {"type": "m.space"},
      "visibility": 'private',
      "power_level_content_override:": {
        'events_default': 100,
        'events': {'m.room.join_rules': 80, 'm.room.name': 70, 'm.room.topic': 70, 'm.room.avatar': 70, 'm.room.pinned_events': 70},
        'ban': 60,
        'users': {'@<user1>:<host>': 100, '@<user2>:<host>': 90},
        "users_default": 0
      },
    },
    headers={'Authorization': 'Bearer ' + MATRIX_APP_KEY}
  )

Synapse is ignoring user2 in the users list and only setting permissions for user1 (the creator). When the user joins the room they have a power level of 0 rather than 90. This seems to be against the spec as it says: 'Overridden by the power_level_content_override parameter.'

Steps to reproduce

  • send the request above

Homeserver

another

Synapse Version

1.96.1

Installation Method

pip (from PyPI)

Database

PostgreSQL

Workers

Single process

Platform

Ubuntu

Configuration

No response

Relevant log output

N/A

Anything else that would be useful to know?

No response

@NiallBunting NiallBunting closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant