Monotone-Parent: 9b5ebc598474f9893ae9cd49b70769d7dbe2996f

Monotone-Revision: 555ffbaeafab3a0a23649acb1714e47a78d35d81

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-21T16:05:07
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2007-11-21 16:05:07 +00:00
1 parent ebbc840ecd
commit ac37cfc054
6 files changed
+26 -18

No files matched your search

+8 -14
View File
@@ -30,6 +30,7 @@
#import <SoObjects/SOGo/SOGoContentObject.h>
#import <SoObjects/SOGo/SOGoPermissions.h>
#import <SoObjects/SOGo/NSArray+Utilities.h>
#import <SoObjects/SOGo/SOGoUser.h>
#import "UIxAclEditor.h"
@@ -149,17 +150,6 @@
return [self _displayNameForUID: currentUser];
}
- (NSString *) toolbar
{
NSString *currentLogin, *ownerLogin;
currentLogin = [[context activeUser] login];
ownerLogin = [[self clientObject] ownerInContext: context];
return (([ownerLogin isEqualToString: currentLogin])
? @"SOGoAclOwner.toolbar" : @"SOGoAclAssistant.toolbar");
}
- (void) setUserUIDS: (NSString *) retainedUsers
{
if ([retainedUsers length] > 0)
@@ -199,13 +189,17 @@
- (BOOL) currentUserIsOwner
{
SOGoObject *clientObject;
SOGoUser *currentUser;
NSString *currentUserLogin, *ownerLogin;
clientObject = [self clientObject];
ownerLogin = [clientObject ownerInContext: context];
currentUserLogin = [[context activeUser] login];
return [ownerLogin isEqualToString: currentUserLogin];
currentUser = [context activeUser];
currentUserLogin = [currentUser login];
return ([ownerLogin isEqualToString: currentUserLogin]
|| ([currentUser respondsToSelector: @selector (isSuperUser)]
&& [currentUser isSuperUser]));
}
// - (id <WOActionResults>) addUserInAcls