mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-09 20:39:44 +00:00
fix(calendar): resource was busy even if they have delegated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user