Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php
- index 6877fca..3d642ac 100644
- --- a/CRM/Admin/Form/ScheduleReminders.php
- +++ b/CRM/Admin/Form/ScheduleReminders.php
- @@ -58,6 +58,12 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form {
- $providersCount = CRM_SMS_BAO_Provider::activeProviderCount();
- $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
- + //CRM-16777: Do not permit access to user to add, edit, delete schedule reminders through administer when,
- + //user that does NOT have 'administer CiviCRM', but does have 'edit all events' permission
- + if (empty($this->_context) && !CRM_Core_Permission::check('administer CiviCRM')) {
- + CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
- + }
- +
- if ($this->_action & (CRM_Core_Action::DELETE)) {
- $reminderName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_ActionSchedule', $this->_id, 'title');
- if ($this->_context == 'event') {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement