From 499dbf68ae6678d41410992bc54b27566263aeab Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 10 Feb 2016 15:03:20 -0500 Subject: [PATCH] (fix) allow resources to prevent invitations (fixes #3410) --- SoObjects/Appointments/SOGoAppointmentObject.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 2d117959b..59bb5ddc3 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -432,7 +432,7 @@ i = count = 0; - // Build list of the attendees uids without ressources + // Build list of the attendees uids unavailableAttendees = [[NSMutableArray alloc] init]; enumerator = [theAttendees objectEnumerator]; ownerUID = [[[self context] activeUser] login]; @@ -448,7 +448,7 @@ moduleSettings = [us objectForKey:@"Calendar"]; // Check if the user prevented their account from beeing invited to events - if (![user isResource] && [[moduleSettings objectForKey:@"PreventInvitations"] boolValue]) + if ([[moduleSettings objectForKey:@"PreventInvitations"] boolValue]) { // Check if the user have a whiteList whiteList = [moduleSettings objectForKey:@"PreventInvitationsWhitelist"];