mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Monotone-Parent: 0d3cf6e6df797aaeaebcf6b6b99f0d547f5a6c9d
Monotone-Revision: c44b382e05fae54797514e515e98878442841235 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-05T19:13:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2007-11-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Common/UIxObjectActions.m ([UIxObjectActions +initialize]):
|
||||
read "SOGoACLsSendEMailNotifications" from the user defaults to
|
||||
determiner whether to send an email when a user is added or
|
||||
removed from an object's acl.
|
||||
|
||||
* SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject
|
||||
-contentForEditing]): make sure the htmlContent flag is set to NO
|
||||
when we select the textual part. Also we select only the relevant
|
||||
|
||||
@@ -31,8 +31,18 @@
|
||||
|
||||
#import "UIxObjectActions.h"
|
||||
|
||||
static BOOL sendACLAdvisories = NO;
|
||||
|
||||
@implementation UIxObjectActions
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
NSUserDefaults *ud;
|
||||
|
||||
ud = [NSUserDefaults standardUserDefaults];
|
||||
sendACLAdvistories = [ud boolForKey: @"SOGoACLsSendEMailNotifications"];
|
||||
}
|
||||
|
||||
- (WOResponse *) addUserInAclsAction
|
||||
{
|
||||
WOResponse *response;
|
||||
@@ -53,7 +63,8 @@
|
||||
clientObject = [self clientObject];
|
||||
[clientObject setRoles: [clientObject aclsForUser: uid]
|
||||
forUser: uid];
|
||||
[clientObject sendACLAdditionAdvisoryToUser: uid];
|
||||
if (sendACLAdvistories)
|
||||
[clientObject sendACLAdditionAdvisoryToUser: uid];
|
||||
code = 204;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +94,8 @@
|
||||
{
|
||||
co = [self clientObject];
|
||||
[co removeAclsForUsers: [NSArray arrayWithObject: uid]];
|
||||
[co sendACLRemovalAdvisoryToUser: uid];
|
||||
if (sendACLAdvistories)
|
||||
[co sendACLRemovalAdvisoryToUser: uid];
|
||||
code = 204;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user