Monotone-Parent: ddd5665cdecc3c1a1ce97322dd14c8723477bfa5

Monotone-Revision: 90f26599c1d1dea2ba798615fd3a3e18223163e7

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-21T18:57:45
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-21 18:57:45 +00:00
parent 76e6f99cf0
commit 6ad1a55df5
+6 -6
View File
@@ -189,17 +189,17 @@
- (BOOL) currentUserIsOwner
{
SOGoObject *clientObject;
SOGoUser *currentUser;
SOGoUser *user;
NSString *currentUserLogin, *ownerLogin;
clientObject = [self clientObject];
ownerLogin = [clientObject ownerInContext: context];
currentUser = [context activeUser];
currentUserLogin = [currentUser login];
user = [context activeUser];
currentUserLogin = [user login];
return ([ownerLogin isEqualToString: currentUserLogin]
|| ([currentUser respondsToSelector: @selector (isSuperUser)]
&& [currentUser isSuperUser]));
|| ([user respondsToSelector: @selector (isSuperUser)]
&& [user isSuperUser]));
}
// - (id <WOActionResults>) addUserInAcls