Hi Everyone,
My system setup is such that every user can only see their email templates. But when they create an event or campaign and choose the email template they can see all. Is there any setting that I have missed such that the dropdown list only shows their own email templates? Or can point me to the code that setup the list? I have the developers book but not mentioned there.
Thanks!
Jason
HI All,
Managed to sort this out. Must edit FP_Events.php (Events) and WizardMarketing.php (Campaigns) and include this piece of code…
/* BEGIN - SECURITY GROUPS /
global $beanFiles;
require_once($beanFiles[‘EmailTemplate’]);
$emailtemplateBean = new EmailTemplate();
$where = “”;
/ Test if ACL is on /
if (ACLController::requireOwner($emailtemplateBean->module_dir, ‘list’)) {
//if ($emailtemplateBean->bean_implements(‘ACL’)) {
$owner_where = $emailtemplateBean->getOwnerWhere($current_user->id);
$where = $owner_where; } elseif
/ Test if group access /
(ACLController::requireSecurityGroup($emailtemplateBean->module_dir, ‘list’)) {
$group_where = SecurityGroup::getGroupWhere($emailtemplateBean->table_name, $emailtemplateBean->module_dir, $current_user->id);
$where = $group_where;
}
/ BEGIN - SECURITY GROUPS */