Monotone-Parent: 6ea44b1efa1edb28f1218a700087fee83cb79305

Monotone-Revision: 2b0145bf6bbc08cf0fb2fc9d65b3fd914daa72c2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T21:13:09
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-12-01 21:13:09 +00:00
parent afe94a13c2
commit 0f35c72c24
12 changed files with 221 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#import <Foundation/NSURL.h>
#import <NGExtensions/NSObject+Logs.h>
#import <SOGo/SOGoObject.h>
#import <SOGo/SOGoPermissions.h>
#import <SOGo/SOGoUser.h>
#import "MAPIStoreActiveTables.h"
@@ -137,6 +138,7 @@ rtf2html (NSData *compressedRTF)
{
attachmentParts = [NSMutableDictionary new];
activeTables = [NSMutableArray new];
activeUserRoles = nil;
}
return self;
@@ -144,6 +146,7 @@ rtf2html (NSData *compressedRTF)
- (void) dealloc
{
[activeUserRoles release];
[attachmentKeys release];
[attachmentParts release];
[activeTables release];
@@ -799,4 +802,31 @@ rtf2html (NSData *compressedRTF)
[activeTables removeObject: activeTable];
}
- (NSArray *) activeUserRoles
{
MAPIStoreContext *context;
if (!activeUserRoles)
{
context = [self context];
activeUserRoles = [[context activeUser]
rolesForObject: sogoObject
inContext: [context woContext]];
[activeUserRoles retain];
}
return activeUserRoles;
}
- (BOOL) subscriberCanReadMessage
{
return NO;
}
- (BOOL) subscriberCanModifyMessage
{
return NO;
}
@end