fix(calendar): resource was busy even if they have delegated

This commit is contained in:
Hivert Quentin
2024-04-18 10:11:38 +02:00
parent 5830053026
commit 880eb89719
@@ -842,9 +842,12 @@
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;
}
}