mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-26 00:22:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user