bugfix PreventInvitation

This commit is contained in:
Alexandre Cloutier
2014-09-09 11:30:00 -04:00
parent 8c8e7d24a7
commit 9a380f711c
3 changed files with 63 additions and 59 deletions
+3 -2
View File
@@ -652,13 +652,14 @@ static NSArray *reminderValues = nil;
return whiteList;
}
- (void) setWhiteList: (NSArray *) whiteList
- (void) setWhiteList: (NSString *) whiteListString
{
SOGoUserSettings *us;
NSMutableDictionary *moduleSettings;
us = [user userSettings];
moduleSettings = [us objectForKey: @"Calendar"];
[moduleSettings setObject: whiteList forKey: @"PreventInvitationsWhitelist"];
[moduleSettings setObject: whiteListString forKey: @"PreventInvitationsWhitelist"];
[us synchronize];
}