mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user