Monotone-Parent: 052d83040e0d4ee5456c2ee8ef81f588178b384b
Monotone-Revision: c4e25d84f9042e9b35f379e1d77a96da56e08bc0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-15T20:17:11 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
401c6c8ae2
commit
b952f2fbb3
|
@ -23,6 +23,7 @@
|
|||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
|
||||
#import <SoObjects/SOGo/NSArray+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
|
||||
#import "iCalEntityObject+SOGo.h"
|
||||
|
@ -32,12 +33,14 @@
|
|||
- (BOOL) userIsParticipant: (SOGoUser *) user
|
||||
{
|
||||
NSEnumerator *emails;
|
||||
NSArray *identities;
|
||||
NSString *currentEmail;
|
||||
BOOL response;
|
||||
|
||||
response = NO;
|
||||
|
||||
emails = [[user allEmails] objectEnumerator];
|
||||
identities = [user allIdentities];
|
||||
emails = [[identities objectsForKey: @"email"] objectEnumerator];
|
||||
currentEmail = [emails nextObject];
|
||||
while (!response && currentEmail)
|
||||
if ([self isParticipant: currentEmail])
|
||||
|
@ -51,12 +54,14 @@
|
|||
- (BOOL) userIsOrganizer: (SOGoUser *) user
|
||||
{
|
||||
NSEnumerator *emails;
|
||||
NSArray *identities;
|
||||
NSString *currentEmail;
|
||||
BOOL response;
|
||||
|
||||
response = NO;
|
||||
|
||||
emails = [[user allEmails] objectEnumerator];
|
||||
identities = [user allIdentities];
|
||||
emails = [[identities objectsForKey: @"email"] objectEnumerator];
|
||||
currentEmail = [emails nextObject];
|
||||
while (!response && currentEmail)
|
||||
if ([self isOrganizer: currentEmail])
|
||||
|
|
Loading…
Reference in New Issue