mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 18:35:10 +00:00
Monotone-Parent: dba6030e8ab5f3e8a853dc8c3dc20a3e3fb3973a
Monotone-Revision: c0a9477f1eb52db3cc79a428d99ba7227f71fa3c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-24T18:47:32 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1297,4 +1297,47 @@ static NSNumber *sharedYes = nil;
|
||||
return @"IPF.Appointment";
|
||||
}
|
||||
|
||||
/* hack until we permit more than 1 cal per user */
|
||||
- (NSArray *) _fixedPath: (NSArray *) objectPath
|
||||
{
|
||||
NSMutableArray *newPath;
|
||||
|
||||
newPath = [NSMutableArray arrayWithArray: objectPath];
|
||||
if ([newPath count] > 2
|
||||
&& ![[newPath objectAtIndex: 2] isEqualToString: @"personal"])
|
||||
[newPath insertObject: @"personal" atIndex: 2];
|
||||
else
|
||||
[newPath addObject: @"personal"];
|
||||
|
||||
return newPath;
|
||||
}
|
||||
|
||||
- (NSArray *) aclUsersForObjectAtPath: (NSArray *) objectPathArray
|
||||
{
|
||||
return [super aclUsersForObjectAtPath: [self _fixedPath: objectPathArray]];
|
||||
}
|
||||
|
||||
- (NSArray *) aclsForUser: (NSString *) uid
|
||||
forObjectAtPath: (NSArray *) objectPathArray
|
||||
{
|
||||
return [super aclsForUser: uid
|
||||
forObjectAtPath: [self _fixedPath: objectPathArray]];
|
||||
}
|
||||
|
||||
- (void) setRoles: (NSArray *) roles
|
||||
forUser: (NSString *) uid
|
||||
forObjectAtPath: (NSArray *) objectPathArray
|
||||
{
|
||||
[super setRoles: roles
|
||||
forUser: uid
|
||||
forObjectAtPath: [self _fixedPath: objectPathArray]];
|
||||
}
|
||||
|
||||
- (void) removeAclsForUsers: (NSArray *) users
|
||||
forObjectAtPath: (NSArray *) objectPathArray
|
||||
{
|
||||
[super removeAclsForUsers: users
|
||||
forObjectAtPath: [self _fixedPath: objectPathArray]];
|
||||
}
|
||||
|
||||
@end /* SOGoAppointmentFolder */
|
||||
|
||||
Reference in New Issue
Block a user