mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-15 21:34:53 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user