diff --git a/src/components/Editor/Invitees/InviteesList.vue b/src/components/Editor/Invitees/InviteesList.vue index fa8367b284..a9a186a6f1 100644 --- a/src/components/Editor/Invitees/InviteesList.vue +++ b/src/components/Editor/Invitees/InviteesList.vue @@ -51,7 +51,7 @@ {{ $t('calendar', 'Show busy times') }} @@ -128,6 +128,11 @@ export default { return this.invitees .filter(attendee => attendee.uri !== this.calendarObjectInstance.organizer.uri) }, + isOrganizer() { + return this.calendarObjectInstance.organizer !== null + && this.$store.getters.getCurrentUserPrincipal !== null + && removeMailtoPrefix(this.calendarObjectInstance.organizer.uri) === this.$store.getters.getCurrentUserPrincipal.emailAddress + }, hasOrganizer() { return this.calendarObjectInstance.organizer !== null },