mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 19:04:18 +00:00
Monotone-Parent: fdc1029cea8bf902ceb3325858089ba7d8fdb070
Monotone-Revision: 828852e3641e027c929bbe98983fa943acedb718 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-17T23:13:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2007-05-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Common/UIxObjectActions.m ([UIxObjectActions
|
||||
-addUserInAclsAction]): save the previous roles of the user
|
||||
(unlikely) or the default roles, or None instead of saving the
|
||||
roles that should appear the first time in the role editor when no
|
||||
default has been set...
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m: defined a new constant
|
||||
"SOGoDefaultUserID".
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
#import <SoObjects/SOGo/LDAPUserManager.h>
|
||||
#import <SoObjects/SOGo/SOGoObject.h>
|
||||
#import <SoObjects/SOGo/SOGoPermissions.h>
|
||||
|
||||
#import "UIxObjectActions.h"
|
||||
|
||||
@@ -49,9 +50,9 @@
|
||||
um = [LDAPUserManager sharedUserManager];
|
||||
if ([um contactInfosForUserWithUIDorEmail: uid])
|
||||
{
|
||||
clientObject = [self clientObject];
|
||||
[clientObject setRoles: [clientObject defaultAclRoles]
|
||||
forUser: uid];
|
||||
clientObject = [self clientObject];
|
||||
[clientObject setRoles: [clientObject aclsForUser: uid]
|
||||
forUser: uid];
|
||||
code = 204;
|
||||
}
|
||||
}
|
||||
@@ -78,7 +79,8 @@
|
||||
um = [LDAPUserManager sharedUserManager];
|
||||
if ([um contactInfosForUserWithUIDorEmail: uid])
|
||||
{
|
||||
[[self clientObject] removeAclsForUsers: [NSArray arrayWithObject: uid]];
|
||||
[[self clientObject] removeAclsForUsers:
|
||||
[NSArray arrayWithObject: uid]];
|
||||
code = 204;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user