Skip to content

Commit

Permalink
Merge pull request #6418 from nextcloud/fix/issue-2659-allow-adding-self
Browse files Browse the repository at this point in the history
fix: allow adding self to shared event
  • Loading branch information
SebastianKrupinski authored Oct 31, 2024
2 parents 4edc1ed + 169582d commit 7026ba2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ export default {
alreadyInvitedEmails() {
const emails = this.invitees.map(attendee => removeMailtoPrefix(attendee.uri))

// A user should be able to invite themselves if they are not the organizer
const principal = this.principalsStore.getCurrentUserPrincipal
if (principal) {
const organizerUri = this.calendarObjectInstance.organizer?.uri
if (organizerUri) {
emails.push(removeMailtoPrefix(organizerUri))
} else if (principal) {
emails.push(principal.emailAddress)
}

Expand Down

0 comments on commit 7026ba2

Please sign in to comment.