mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-12 11:55:09 +00:00
Monotone-Parent: 925d096d1e0f9b05775333d6111c325f69a17ac0
Monotone-Revision: cadb1dbd9d4e2d99af291da99b803238fd438921 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-16T18:50:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -32,11 +32,10 @@
|
||||
|
||||
#import "AgenorUserDefaults.h"
|
||||
#import "LDAPUserManager.h"
|
||||
#import "NSArray+Utilities.h"
|
||||
#import "SOGoCache.h"
|
||||
#import "SOGoDateFormatter.h"
|
||||
#import "SOGoObject.h"
|
||||
#import "SOGoPermissions.h"
|
||||
#import "NSArray+Utilities.h"
|
||||
|
||||
#import "SOGoUser.h"
|
||||
|
||||
@@ -125,18 +124,10 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
+ (SOGoUser *) userWithLogin: (NSString *) newLogin
|
||||
roles: (NSArray *) newRoles
|
||||
{
|
||||
SOGoCache *cache;
|
||||
SOGoUser *user;
|
||||
|
||||
cache = [SOGoCache sharedCache];
|
||||
user = [cache userNamed: newLogin];
|
||||
if (!user)
|
||||
{
|
||||
user = [[self alloc] initWithLogin: newLogin roles: newRoles];
|
||||
[user autorelease];
|
||||
[cache registerUser: user];
|
||||
}
|
||||
[user setPrimaryRoles: newRoles];
|
||||
user = [[self alloc] initWithLogin: newLogin roles: newRoles];
|
||||
[user autorelease];
|
||||
|
||||
return user;
|
||||
}
|
||||
@@ -190,11 +181,6 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setPrimaryRoles: (NSArray *) newRoles
|
||||
{
|
||||
ASSIGN (roles, newRoles);
|
||||
}
|
||||
|
||||
- (void) setCurrentPassword: (NSString *) newPassword
|
||||
{
|
||||
ASSIGN (currentPassword, newPassword);
|
||||
|
||||
Reference in New Issue
Block a user