Monotone-Parent: b4900cbcd7c48cfd36bb5a262eec357e3ac1033a

Monotone-Revision: 533c5fea139373885b136bf6d41275a80a56967b

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-12-09T16:34:11
This commit is contained in:
Francis Lachapelle
2011-12-09 16:34:11 +00:00
parent d06d406866
commit 95e42d38f7
6 changed files with 40 additions and 85 deletions
+1 -22
View File
@@ -460,7 +460,7 @@ static NSMutableArray *abbrMonthLabelKeys = nil;
value = [[context request] cookieValueForKey: @"SOGoWindowMode"];
result = ([value isEqualToString: @"single"]);
NSLog(@"Single window mode %@", result?@"enabled":@"disabled");
//NSLog(@"Single window mode %@", result?@"enabled":@"disabled");
return result;
}
@@ -483,27 +483,6 @@ static NSMutableArray *abbrMonthLabelKeys = nil;
return [user canAccessModule: @"Mail"];
}
#warning we might want to refine the tests here...
- (BOOL) isCalendarEnabled
{
return [self userHasCalendarAccess] && ![self singleWindowModeEnabled];
}
- (BOOL) isContactsEnabled
{
return ![self singleWindowModeEnabled];
}
- (BOOL) isMailEnabled
{
return [self userHasMailAccess];
}
- (BOOL) isPreferencesEnabled
{
return ![self singleWindowModeEnabled];
}
/* SoUser */
- (NSString *) shortUserNameForDisplay