Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<div class="participant-row__user-wrapper"
:class="{
'has-call-icon': callIcon,
'has-menu-icon': canBeModerated && !isSearched
'has-menu-icon': (canBeModerated || canSendCallNotification) && !isSearched
}">
<!-- First line: participant's name and type -->
<div ref="userName"
Expand Down Expand Up @@ -89,7 +89,7 @@
</div>

<!-- Participant's actions menu -->
<NcActions v-if="canBeModerated && !isSearched"
<NcActions v-if="(canBeModerated || canSendCallNotification) && !isSearched"
:container="container"
:aria-label="participantSettingsAriaLabel"
:force-menu="true"
Expand Down Expand Up @@ -159,7 +159,7 @@
{{ t('spreed', 'Edit permissions') }}
</NcActionButton>
</template>
<NcActionButton v-if="isEmailActor"
<NcActionButton v-if="canBeModerated && isEmailActor"
icon="icon-mail"
:close-after-click="true"
@click="resendInvitation">
Expand All @@ -174,7 +174,8 @@
{{ t('spreed', 'Send call notification') }}
</NcActionButton>
<NcActionSeparator v-if="attendeePin || canBePromoted || canBeDemoted || isEmailActor" />
<NcActionButton icon="icon-delete"
<NcActionButton v-if="canBeModerated"
icon="icon-delete"
:close-after-click="true"
@click="removeParticipant">
<template v-if="isGroup">
Expand Down Expand Up @@ -472,7 +473,7 @@ export default {
},

attendeePin() {
return this.participant.attendeePin ? this.readableNumber(this.participant.attendeePin) : ''
return this.canBeModerated && this.participant.attendeePin ? this.readableNumber(this.participant.attendeePin) : ''
},

token() {
Expand Down Expand Up @@ -528,7 +529,7 @@ export default {
},

showPermissionsOptions() {
return this.selfIsModerator
return this.canBeModerated
&& !this.isModerator
&& (this.participant.actorType === ATTENDEE.ACTOR_TYPE.USERS
|| this.participant.actorType === ATTENDEE.ACTOR_TYPE.GUESTS
Expand Down