Monotone-Parent: 40f77d0f9e67b4e3fd56c1a7eb0b966cabaca41f

Monotone-Revision: d56786bfd4252cac6fabbec16a507890e9920737

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-21T02:36:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-08-21 02:36:04 +00:00
parent e9c35d8950
commit 4c7d2820ec
14 changed files with 114 additions and 5 deletions
+8
View File
@@ -44,6 +44,7 @@
static BOOL defaultsRead = NO;
static BOOL shouldDisplayPasswordChange = NO;
static BOOL shouldDisplayAdditionalPreferences = NO;
@implementation UIxPreferences
@@ -56,6 +57,8 @@ static BOOL shouldDisplayPasswordChange = NO;
ud = [NSUserDefaults standardUserDefaults];
shouldDisplayPasswordChange
= [ud boolForKey: @"SOGoUIxUserCanChangePassword"];
shouldDisplayAdditionalPreferences
= [ud boolForKey: @"SOGoUIxAdditionalPreferences"];
defaultsRead = YES;
}
}
@@ -548,6 +551,11 @@ static BOOL shouldDisplayPasswordChange = NO;
return [user canAccessModule: @"Mail"];
}
- (BOOL) shouldDisplayAdditionalPreferences
{
return shouldDisplayAdditionalPreferences;
}
- (BOOL) shouldDisplayPasswordChange
{
return shouldDisplayPasswordChange;