mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-09 20:39:44 +00:00
Monotone-Parent: 89e96558858b2cf13a764624a48709a6ae445040
Monotone-Revision: 2aa515f85c333b96d717d00a46fabb09517fd9c0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-22T18:40:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-05-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Common/UIxAclEditor.m ([UIxAclEditor -defaultUserID])
|
||||
([UIxAclEditor -_prepareUsers]): take the new SOGoObject's
|
||||
"defaultUserID" method into account.
|
||||
|
||||
* UI/Common/UIxUserRightsEditor.m ([UIxUserRightsEditor -userIsDefaultUser])
|
||||
([UIxUserRightsEditor -_initRights]): take the new SOGoObject's
|
||||
"defaultUserID" method into account.
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
NSArray *savedUIDs;
|
||||
NSMutableArray *users;
|
||||
NSString *currentUser;
|
||||
NSString *defaultUserID;
|
||||
}
|
||||
|
||||
- (NSArray *) aclsForObject;
|
||||
|
||||
@@ -87,7 +87,10 @@
|
||||
|
||||
- (NSString *) defaultUserID
|
||||
{
|
||||
return SOGoDefaultUserID;
|
||||
if (!defaultUserID)
|
||||
ASSIGN (defaultUserID, [[self clientObject] defaultUserID]);
|
||||
|
||||
return defaultUserID;
|
||||
}
|
||||
|
||||
- (void) _prepareUsers
|
||||
@@ -96,16 +99,19 @@
|
||||
NSString *currentUID, *ownerLogin;
|
||||
|
||||
ownerLogin = [[self clientObject] ownerInContext: context];
|
||||
if (!defaultUserID)
|
||||
ASSIGN (defaultUserID, [[self clientObject] defaultUserID]);
|
||||
|
||||
aclsEnum = [[self aclsForObject] objectEnumerator];
|
||||
currentUID = [aclsEnum nextObject];
|
||||
while (currentUID)
|
||||
{
|
||||
if (!([currentUID isEqualToString: ownerLogin]
|
||||
|| [currentUID isEqualToString: SOGoDefaultUserID]))
|
||||
|| [currentUID isEqualToString: defaultUserID]))
|
||||
[users addObjectUniquely: currentUID];
|
||||
currentUID = [aclsEnum nextObject];
|
||||
}
|
||||
|
||||
prepared = YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user