<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Mailing_Form_Schedule extends CRM_Core_Form {
/**
- * Set variables up before form is built
+ * Set variables up before form is built.
*
* @return void
*/
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);
}
/**
- * Build the form object for the last step of the mailing wizard
+ * Build the form object for the last step of the mailing wizard.
*
* @param
*
}
/**
- * Display Name of the form
+ * Display Name of the form.
*
*
* @return string
public function getTitle() {
return ts('Schedule or Send');
}
+
}