Monotone-Parent: 29bd9d1c5051eac140806ad6a68c2587e599f1c8
Monotone-Revision: ff895fda6a6ad0202ba5094f8f2c79c3278396f2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-02-21T21:12:41 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
7319adaeaf
commit
11bee71579
|
@ -19,10 +19,13 @@
|
|||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "SOGoContentObject.h"
|
||||
#include "SOGoFolder.h"
|
||||
#include "common.h"
|
||||
#include <GDLContentStore/GCSFolder.h>
|
||||
#import <GDLContentStore/GCSFolder.h>
|
||||
|
||||
#import <SOGo/SOGoUser.h>
|
||||
|
||||
#import "common.h"
|
||||
#import "SOGoFolder.h"
|
||||
#import "SOGoContentObject.h"
|
||||
|
||||
@interface SOGoContentObject(ETag)
|
||||
- (NSArray *)parseETagList:(NSString *)_c;
|
||||
|
@ -236,6 +239,27 @@
|
|||
return [_ctx response];
|
||||
}
|
||||
|
||||
/* security */
|
||||
- (NSArray *) rolesOfUser: (NSString *) login
|
||||
inContext: (WOContext *) context
|
||||
{
|
||||
NSMutableArray *sogoRoles;
|
||||
SOGoUser *user;
|
||||
|
||||
sogoRoles = [NSMutableArray new];
|
||||
[sogoRoles autorelease];
|
||||
|
||||
if (![container nameExistsInFolder: nameInContainer])
|
||||
{
|
||||
user = [[SOGoUser alloc] initWithLogin: login roles: nil];
|
||||
[sogoRoles addObjectsFromArray: [user rolesForObject: container
|
||||
inContext: context]];
|
||||
[user release];
|
||||
}
|
||||
|
||||
return sogoRoles;
|
||||
}
|
||||
|
||||
/* E-Tags */
|
||||
|
||||
- (id)davEntityTag {
|
||||
|
|
Loading…
Reference in New Issue