*/
public function preProcess() {
if (CRM_Mailing_Info::workflowEnabled()) {
- if (!CRM_Core_Permission::check('approve mailings')) {
+ if (!CRM_Core_Permission::check('approve mailings') && !CRM_Core_Permission::check('access CiviMail')) {
$this->redirectToListing();
}
}
*/
public function preProcess() {
if (CRM_Mailing_Info::workflowEnabled() &&
- !CRM_Core_Permission::check('schedule mailings')
+ !CRM_Core_Permission::check('schedule mailings') &&
+ !CRM_Core_Permission::check('access CiviMail')
) {
$url = CRM_Utils_System::url('civicrm/mailing/browse/unscheduled', 'reset=1&scheduled=false');
CRM_Utils_System::redirect($url);
// if user is an admin, return true
if (CRM_Core_Permission::check('administer CiviCRM') ||
+ CRM_Core_Permission::check('approve mailings') ||
CRM_Core_Permission::check('access CiviMail')
) {
return TRUE;
);
if (CRM_Mailing_Info::workflowEnabled()) {
- if (CRM_Core_Permission::check('schedule mailings')) {
+ if (CRM_Core_Permission::check('schedule mailings') || CRM_Core_Permission::check('access CiviMail')) {
$this->_pages['CRM_Mailing_Form_Schedule'] = NULL;
}
- if (CRM_Core_Permission::check('approve mailings')) {
+ if (CRM_Core_Permission::check('approve mailings') || CRM_Core_Permission::check('access CiviMail')) {
$this->_pages['CRM_Mailing_Form_Approve'] = NULL;
}
}
<path>civicrm/mailing/schedule</path>
<title>Schedule Mailing</title>
<page_callback>CRM_Mailing_Form_Schedule</page_callback>
- <access_arguments>schedule mailings</access_arguments>
+ <access_arguments>access CiviMail;schedule mailings</access_arguments>
<weight>700</weight>
</item>
<item>
<path>civicrm/mailing/approve</path>
<title>Approve Mailing</title>
<page_callback>CRM_Mailing_Form_Approve</page_callback>
- <access_arguments>approve mailings</access_arguments>
+ <access_arguments>access CiviMail;approve mailings</access_arguments>
<weight>850</weight>
</item>
<item>