From 390ffd9e22735a37dcc6ef920001fe2f11d3c97a Mon Sep 17 00:00:00 2001 From: DorraJaouad Date: Wed, 14 Aug 2024 14:42:52 +0200 Subject: [PATCH] fix(Participant): hide ban option for federated users Signed-off-by: DorraJaouad --- .../RightSidebar/Participants/Participant.spec.js | 4 ++-- src/components/RightSidebar/Participants/Participant.vue | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/RightSidebar/Participants/Participant.spec.js b/src/components/RightSidebar/Participants/Participant.spec.js index bfbb4f5b078..b44bf53cc6e 100644 --- a/src/components/RightSidebar/Participants/Participant.spec.js +++ b/src/components/RightSidebar/Participants/Participant.spec.js @@ -709,11 +709,11 @@ describe('Participant.vue', () => { await testCanBan() }) - test('allows a moderator to ban a federated user', async () => { + test('doesn not allow a moderator to ban a federated user', async () => { conversation.participantType = PARTICIPANT.TYPE.MODERATOR participant.actorType = ATTENDEE.ACTOR_TYPE.FEDERATED_USERS participant.participantType = PARTICIPANT.TYPE.USER - await testCanBan() + await testCannotBan() }) test('allows a moderator to ban a guest', async () => { diff --git a/src/components/RightSidebar/Participants/Participant.vue b/src/components/RightSidebar/Participants/Participant.vue index bbd57740e4f..56d2c0070e2 100644 --- a/src/components/RightSidebar/Participants/Participant.vue +++ b/src/components/RightSidebar/Participants/Participant.vue @@ -290,7 +290,7 @@ :name="removeParticipantLabel" :container="container">

{{ removeDialogMessage }}

-