Skip to content

Commit

Permalink
fix(calendar(dav)): prevent duplicates in PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Mar 25, 2022
1 parent fbd2eb8 commit c348ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoObjects/Appointments/SOGoAppointmentObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ - (id) PUTAction: (WOContext *) _ctx
ownerUser = [SOGoUser userWithLogin: owner];
masterEvent = [[rqCalendar events] objectAtIndex: 0];

if ([masterEvent userIsAttendee: ownerUser])
if (![masterEvent userIsOrganizer: ownerUser] && [masterEvent userIsAttendee: ownerUser])
{
///
// This is a new event, but the user is an attendee; check if the event has
Expand Down

0 comments on commit c348ca2

Please sign in to comment.