- /**
- * 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;
- }
-