Skip to content

Commit

Permalink
(fix) allow resources to prevent invitations (fixes #3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Feb 10, 2016
1 parent e6d1cb9 commit 8c99fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoObjects/Appointments/SOGoAppointmentObject.m
Expand Up @@ -433,7 +433,7 @@ - (NSException *) _handleAttendeeAvailability: (NSArray *) theAttendees

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];
Expand All @@ -449,7 +449,7 @@ - (NSException *) _handleAttendeeAvailability: (NSArray *) theAttendees
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"];
Expand Down

0 comments on commit 8c99fdc

Please sign in to comment.