Room appears twice in the room list and the CREATOR role seems revoked
There is a bug that causes you to be related to a room as both a creator and a participant.
When this error occurs, the room appears twice in the room list and sometimes you can only enter your own room as a participant.
To reproduce the problem, do the following:
- create a room or select a room in which you are CREATOR.
- open this room
- enter "participant" in the URL instead of "creator" (so visit the room in the role participant)
- go back to the room list and you will see that the room is now entered twice
So it seems that when calling the "participant" route, it is not checked whether you are CREATOR of the room. Instead, you will be added as PARTICIPANT without further ado and will be linked to the room via two relations (directly, as CREATOR and indirectly, via room_access).
Proposed solution: When calling the participant route, it is checked whether the user is the CREATOR of the room. If this is the case, the user is simply redirected to the creator route.