mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 14:43:31 +00:00
See Changelog
Monotone-Parent: 87677ae4611dc3d4c0fcc7c8576441631b282a43 Monotone-Revision: 658c430f2ea9683140e903d44e47bc3af6e9f243 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-11-12T16:40:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -410,8 +410,10 @@ static NSNumber *sharedYes = nil;
|
||||
{
|
||||
NSNumber *excludeFromFreeBusy;
|
||||
|
||||
// Check if the owner (not the active user) has excluded the calendar from her/his free busy data.
|
||||
excludeFromFreeBusy
|
||||
= [self folderPropertyValueInCategory: @"FreeBusyExclusions"];
|
||||
= [self folderPropertyValueInCategory: @"FreeBusyExclusions"
|
||||
forUser: [SOGoUser userWithLogin: [self ownerInContext: context]]];
|
||||
|
||||
return ![excludeFromFreeBusy boolValue];
|
||||
}
|
||||
|
||||
@@ -255,12 +255,19 @@ static NSArray *childRecordFields = nil;
|
||||
}
|
||||
|
||||
- (id) folderPropertyValueInCategory: (NSString *) theKey
|
||||
{
|
||||
return [self folderPropertyValueInCategory: theKey
|
||||
forUser: [context activeUser]];
|
||||
}
|
||||
|
||||
- (id) folderPropertyValueInCategory: (NSString *) theKey
|
||||
forUser: (SOGoUser *) theUser
|
||||
{
|
||||
SOGoUserSettings *settings;
|
||||
NSDictionary *folderSettings;
|
||||
id value;
|
||||
|
||||
settings = [[context activeUser] userSettings];
|
||||
settings = [theUser userSettings];
|
||||
folderSettings = [settings objectForKey: [container nameInContainer]];
|
||||
value = [[folderSettings objectForKey: theKey]
|
||||
objectForKey: [self folderReference]];
|
||||
|
||||
Reference in New Issue
Block a user