diff --git a/src/app/molecules/room-permissions/RoomPermissions.jsx b/src/app/molecules/room-permissions/RoomPermissions.jsx index c7a2eee..cd1ce01 100644 --- a/src/app/molecules/room-permissions/RoomPermissions.jsx +++ b/src/app/molecules/room-permissions/RoomPermissions.jsx @@ -218,11 +218,12 @@ function RoomPermissions({ roomId }) { ); }; + const permsGroups = room.isSpaceRoom() ? spacePermsGroups : roomPermsGroups; return (
{ - Object.keys(roomPermsGroups).map((groupKey) => { - const groupedPermKeys = roomPermsGroups[groupKey]; + Object.keys(permsGroups).map((groupKey) => { + const groupedPermKeys = permsGroups[groupKey]; return (
{groupKey}