Add an easy way to get the personal contact folder, just like we have for calendars
parent
689a1e94e0
commit
13721b961b
|
@ -45,6 +45,7 @@
|
|||
|
||||
@class SOGoAppointmentFolder;
|
||||
@class SOGoAppointmentFolders;
|
||||
@class SOGoContactFolder;
|
||||
@class SOGoDateFormatter;
|
||||
@class SOGoDomainDefaults;
|
||||
@class SOGoUserDefaults;
|
||||
|
@ -130,6 +131,7 @@
|
|||
- (SOGoUserFolder *) homeFolderInContext: (id) context;
|
||||
- (SOGoAppointmentFolders *) calendarsFolderInContext: (WOContext *) context;
|
||||
- (SOGoAppointmentFolder *) personalCalendarFolderInContext: (WOContext *) context;
|
||||
- (SOGoContactFolder *) personalContactsFolderInContext: (WOContext *) context;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -841,13 +841,25 @@
|
|||
acquire: NO];
|
||||
}
|
||||
|
||||
- (SOGoAppointmentFolder *)
|
||||
personalCalendarFolderInContext: (WOContext *) context
|
||||
- (SOGoAppointmentFolder *) personalCalendarFolderInContext: (WOContext *) context
|
||||
{
|
||||
return [[self calendarsFolderInContext: context] lookupPersonalFolder: @"personal"
|
||||
ignoringRights: YES];
|
||||
}
|
||||
|
||||
- (SOGoContactFolder *) personalContactsFolderInContext: (WOContext *) context
|
||||
{
|
||||
SOGoContactFolders *folders;
|
||||
|
||||
folders = [[self homeFolderInContext: context] lookupName: @"Contacts"
|
||||
inContext: context
|
||||
acquire: NO];
|
||||
|
||||
return [folders lookupPersonalFolder: @"personal"
|
||||
ignoringRights: YES];
|
||||
}
|
||||
|
||||
|
||||
- (NSArray *) rolesForObject: (NSObject *) object
|
||||
inContext: (WOContext *) context
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue