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