summaryrefslogtreecommitdiffstats
path: root/src/components/TopBar/CallButton.vue
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-10 16:00:18 +0100
committerJoas Schilling <coding@schilljs.com>2021-11-10 16:00:18 +0100
commit1edb02c3491f0921d88aa98a748325d223e929f3 (patch)
treec3038e83570d4dc89accee1d5d3de35f24686e52 /src/components/TopBar/CallButton.vue
parent7f1828094fafed5f3155e6f278538a090e92aea7 (diff)
Only show "End meeting for all" when starting is restricted
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/TopBar/CallButton.vue')
-rw-r--r--src/components/TopBar/CallButton.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/TopBar/CallButton.vue b/src/components/TopBar/CallButton.vue
index ae272efad..285e98d9d 100644
--- a/src/components/TopBar/CallButton.vue
+++ b/src/components/TopBar/CallButton.vue
@@ -146,7 +146,11 @@ export default {
},
canEndForAll() {
- return (this.participantType === PARTICIPANT.TYPE.OWNER || this.participantType === PARTICIPANT.TYPE.MODERATOR || this.participantType === PARTICIPANT.TYPE.GUEST_MODERATOR)
+ return ((this.conversation.callPermissions & PARTICIPANT.PERMISSIONS.CALL_START) === 0
+ || (this.conversation.defaultPermissions & PARTICIPANT.PERMISSIONS.CALL_START) === 0)
+ && (this.participantType === PARTICIPANT.TYPE.OWNER
+ || this.participantType === PARTICIPANT.TYPE.MODERATOR
+ || this.participantType === PARTICIPANT.TYPE.GUEST_MODERATOR)
},
startCallButtonDisabled() {