Skip to content

Commit

Permalink
fix(calendar): resource was busy even if they have delegated
Browse files Browse the repository at this point in the history
  • Loading branch information
QHivert committed Apr 18, 2024
1 parent 5830053 commit 880eb89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SoObjects/Appointments/SOGoAppointmentObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,12 @@ - (NSException *) _handleAttendeesConflicts: (NSArray *) theAttendees
if(r_hasDelegated)
nbOfDelegation++;
}
if([user numberOfSimultaneousBookings] >= [fbInfo count] - nbOfDelegation)
if([user numberOfSimultaneousBookings] > [fbInfo count] - nbOfDelegation)
{
//Resource can still accept reservation, continue the while statement
[[currentAttendee attributes] removeObjectForKey: @"RSVP"];
[currentAttendee setParticipationStatus: iCalPersonPartStatAccepted];
_resourceHasAutoAccepted = YES;
continue;
}
}
Expand Down

0 comments on commit 880eb89

Please sign in to comment.