Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-10 16:29:10 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-05-11 14:34:19 +0300
commitdc65f415d50e3028915444cba2a1bb06f4566765 (patch)
treeac11982079aa42cd513ba018ad8899ee72f77fd6
parentf434e4dff1b67ae0e62c467f9eb29d506abfbb8c (diff)
Only show permission options for real usersbackport/7352/stable24
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
index b4ea4433d..8c5fc49c7 100644
--- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
+++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
@@ -143,7 +143,7 @@
</ActionButton>
<!-- Permissions -->
- <template v-if="selfIsModerator && !isModerator">
+ <template v-if="showPermissionsOptions">
<ActionSeparator />
<ActionButton v-if="hasNonDefaultPermissions"
:close-after-click="true"
@@ -527,6 +527,14 @@ export default {
return this.participantTypeIsModerator(this.participantType)
},
+ showPermissionsOptions() {
+ return this.selfIsModerator
+ && !this.isModerator
+ && (this.participant.actorType === ATTENDEE.ACTOR_TYPE.USERS
+ || this.participant.actorType === ATTENDEE.ACTOR_TYPE.GUESTS
+ || this.participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS)
+ },
+
showModeratorLabel() {
return this.isModerator
&& [CONVERSATION.TYPE.ONE_TO_ONE, CONVERSATION.TYPE.CHANGELOG].indexOf(this.conversation.type) === -1