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

make_room_admin fails for users that have left a private room #10338

@tomushkin

Description

@tomushkin

Description

Calling /_synapse/admin/v1/rooms/$room_id/make_room_admin on a private room would invite the user to the room if not already in it. If the user leaves the room, calling make_room_admin a second time fails with:

{"errcode":"M_FORBIDDEN","error":"$user not in room $room_id"}

Steps to reproduce

  • Call make_room_admin on a private room
  • Join the room with the server admin user
  • Leave the room
  • Call make_room_admin again to get M_FORBIDDEN

The server admin user should be invited to the room again.

Version information

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions