+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC (c) 2004-2020
*/
/**
return TRUE;
}
- /**
- * Is the from being accessed by a front end user to update their own recurring.
- *
- * @var bool
- */
- protected $selfService;
-
/**
* Set variables up before form is built.
*
}
}
- /**
- * Is this being used by a front end user to update their own recurring.
- *
- * @return bool
- */
- protected function isSelfService() {
- if (!is_null($this->selfService)) {
- return $this->selfService;
- }
- $this->selfService = FALSE;
- if (!CRM_Core_Permission::check('edit contributions')) {
- if ($this->_subscriptionDetails->contact_id != $this->getContactID()) {
- CRM_Core_Error::statusBounce(ts('You do not have permission to cancel this recurring contribution.'));
- }
- $this->selfService = TRUE;
- }
- return $this->selfService;
- }
-
}