Monotone-Parent: c204736a5f5dcfce7b1fd9db8327cbe1ff79c7aa

Monotone-Revision: 70c743d917ef016d30989ee6038dc08f22b4d212

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-22T19:16:58
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-22 19:16:58 +00:00
parent c7545b5e9e
commit 71ac2d19bb
2 changed files with 12 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2007-05-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
-isDeletionAllowed]): completed method with the new imap acl api.
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -defaultAclRoles]):
removed method.

View File

@@ -639,10 +639,15 @@ static BOOL debugSoParts = NO;
/* permissions */
- (BOOL)isDeletionAllowed {
#warning b0000ooo
return YES;
// return [[self container] isDeleteAndExpungeAllowed];
- (BOOL) isDeletionAllowed
{
NSArray *parentAcls;
NSString *login;
login = [[context activeUser] login];
parentAcl = [[self container] aclsForUser: login];
return [parentAcl containsObject: SOGoMailRole_MessageEraser];
}
/* name lookup */