Compare commits
70
Commits
v2
...
SOGo-2.3.20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c8f56fb67 | ||
|
|
42fa0a273e | ||
|
|
07872d753c | ||
|
|
0305d00d50 | ||
|
|
3b65b6e2cf | ||
|
|
43a68979ac | ||
|
|
4cd2ad0337 | ||
|
|
ca57ac4677 | ||
|
|
0063320d70 | ||
|
|
f7462fd5ee | ||
|
|
893fdda43b | ||
|
|
62df4fffa3 | ||
|
|
cde6fe520c | ||
|
|
d548cea518 | ||
|
|
278b65d89c | ||
|
|
46261d61ff | ||
|
|
d2952f1c91 | ||
|
|
f10b3e8be0 | ||
|
|
7837343383 | ||
|
|
22acfc943c | ||
|
|
daad202e50 | ||
|
|
a188b5132a | ||
|
|
56b92307b5 | ||
|
|
a479356fbf | ||
|
|
8166f48d10 | ||
|
|
a9eecd76b3 | ||
|
|
f39e4e880e | ||
|
|
399dad7d23 | ||
|
|
1088b027a7 | ||
|
|
baa9057fd6 | ||
|
|
90762689cf | ||
|
|
4c979e3f14 | ||
|
|
d91d5b7a2d | ||
|
|
617fcbbf19 | ||
|
|
b3741e65c8 | ||
|
|
81df371e9f | ||
|
|
c4c1e87612 | ||
|
|
4f9d514c2f | ||
|
|
7a0908c34a | ||
|
|
ced9369623 | ||
|
|
aba24c05fa | ||
|
|
0db668a0ea | ||
|
|
d53f477c8d | ||
|
|
0b243987e0 | ||
|
|
6bf26d45b9 | ||
|
|
64b72969d3 | ||
|
|
727c7ed89f | ||
|
|
3484cd570c | ||
|
|
b9b8983343 | ||
|
|
9c1f36d615 | ||
|
|
ff43324644 | ||
|
|
ef32b0c277 | ||
|
|
da3c68c708 | ||
|
|
3d7071d018 | ||
|
|
0d6c6bb425 | ||
|
|
60819d8233 | ||
|
|
daadc6df69 | ||
|
|
848201850a | ||
|
|
6649d7101e | ||
|
|
3a96b3b315 | ||
|
|
cbcc942e73 | ||
|
|
5433cf19da | ||
|
|
26bfbcf083 | ||
|
|
914f37c3b5 | ||
|
|
d4a4e49521 | ||
|
|
a0e7e9d24e | ||
|
|
52a3508479 | ||
|
|
3a33b465c8 | ||
|
|
559bdf15a8 | ||
|
|
f3aa717570 |
@@ -437,26 +437,32 @@ static Class iCalEventK = nil;
|
||||
//
|
||||
// If the user is the owner of the calendar, by default we include the freebusy information.
|
||||
//
|
||||
// If the user is NOT the owner of the calendar, by default we exclude the freebusy information.
|
||||
// If the user is NOT the owner of the calendar but is subscribed, by default we exclude the freebusy information.
|
||||
//
|
||||
// We must include the freebusy information of other users if we are actually looking at their freebusy information
|
||||
// but we aren't necessarily subscribed to their calendars.
|
||||
//
|
||||
- (BOOL) includeInFreeBusy
|
||||
{
|
||||
NSString *userLogin, *subscriptionReference;
|
||||
NSNumber *excludeFromFreeBusy;
|
||||
NSString *userLogin;
|
||||
BOOL is_owner;
|
||||
|
||||
BOOL is_owner, is_subscription;
|
||||
|
||||
userLogin = [[context activeUser] login];
|
||||
is_owner = [userLogin isEqualToString: self->owner];
|
||||
|
||||
// We check if we're subscribed. We must NOT use here [self isSubscribed] as it'll look
|
||||
// at the owner's settings, and not the activeUser's settings.
|
||||
subscriptionReference = [NSString stringWithFormat: @"%@:Calendar/%@", self->owner, [self nameInContainer]];
|
||||
is_subscription = [[[[[self->context activeUser] userSettings] objectForKey: @"Calendar"] objectForKey: @"SubscribedFolders"] containsObject: subscriptionReference];
|
||||
|
||||
// Check if the owner (not the active user) has excluded the calendar from her/his free busy data.
|
||||
excludeFromFreeBusy
|
||||
= [self folderPropertyValueInCategory: @"FreeBusyExclusions"
|
||||
forUser: [context activeUser]];
|
||||
|
||||
if ([self isSubscription])
|
||||
if (is_subscription)
|
||||
{
|
||||
// If the user has not yet set an include/not include fb information let's EXCLUDE it.
|
||||
if (!excludeFromFreeBusy)
|
||||
|
||||
Reference in new issue
Block a user