mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: ecd42cf765d6bff1717939e5c8e669ef2dbd23f7
Monotone-Revision: 1b8346cb8f33985ba53c8fb47eb2c306c66aaa13 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-22T19:30:36 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -430,11 +430,11 @@ static BOOL useAltNamespace = NO;
|
||||
- (NSArray *) aclsForUser: (NSString *) uid
|
||||
{
|
||||
NSDictionary *imapAcls;
|
||||
NSArray *userAcls;
|
||||
NSString *userAcls;
|
||||
|
||||
imapAcls = [imap4 aclForMailboxAtURL: [self imap4URL]];
|
||||
userAcls = [imapAcls objectForKey: uid];
|
||||
if (!([userAcls count] || [uid isEqualToString: defaultUserID]))
|
||||
if (!([userAcls length] || [uid isEqualToString: defaultUserID]))
|
||||
userAcls = [imapAcls objectForKey: defaultUserID];
|
||||
|
||||
return [self _imapAclsToSOGoAcls: userAcls];
|
||||
|
||||
@@ -19,15 +19,35 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "SOGoMailObject.h"
|
||||
#include "SOGoMailFolder.h"
|
||||
#include "SOGoMailAccount.h"
|
||||
#include "SOGoMailManager.h"
|
||||
#include "SOGoMailBodyPart.h"
|
||||
#include <NGImap4/NGImap4Envelope.h>
|
||||
#include <NGImap4/NGImap4EnvelopeAddress.h>
|
||||
#include <NGMail/NGMimeMessageParser.h>
|
||||
#include "common.h"
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSUserDefaults.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGExtensions/NGBase64Coding.h>
|
||||
#import <NGExtensions/NSNull+misc.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
#import <NGExtensions/NGQuotedPrintableCoding.h>
|
||||
#import <NGExtensions/NSString+Encoding.h>
|
||||
#import <NGImap4/NGImap4Connection.h>
|
||||
#import <NGImap4/NGImap4Envelope.h>
|
||||
#import <NGImap4/NGImap4EnvelopeAddress.h>
|
||||
#import <NGMail/NGMimeMessageParser.h>
|
||||
|
||||
#import <SoObjects/SOGo/SOGoPermissions.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
#import "SOGoMailFolder.h"
|
||||
#import "SOGoMailAccount.h"
|
||||
#import "SOGoMailManager.h"
|
||||
#import "SOGoMailBodyPart.h"
|
||||
|
||||
#import "SOGoMailObject.h"
|
||||
|
||||
@implementation SOGoMailObject
|
||||
|
||||
@@ -641,7 +661,7 @@ static BOOL debugSoParts = NO;
|
||||
|
||||
- (BOOL) isDeletionAllowed
|
||||
{
|
||||
NSArray *parentAcls;
|
||||
NSArray *parentAcl;
|
||||
NSString *login;
|
||||
|
||||
login = [[context activeUser] login];
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
publishInFreeBusy = NO;
|
||||
users = [NSMutableArray new];
|
||||
currentUser = nil;
|
||||
defaultUserID = nil;
|
||||
savedUIDs = nil;
|
||||
}
|
||||
|
||||
@@ -55,6 +56,7 @@
|
||||
[savedUIDs release];
|
||||
[users release];
|
||||
[currentUser release];
|
||||
[defaultUserID release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
{
|
||||
[uid release];
|
||||
[userRights release];
|
||||
[defaultUserID release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user