mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
Monotone-Parent: b4900cbcd7c48cfd36bb5a262eec357e3ac1033a
Monotone-Revision: 533c5fea139373885b136bf6d41275a80a56967b Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-12-09T16:34:11
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user