From: Joseph Lacey Date: Mon, 6 Jun 2016 02:34:52 +0000 (-0600) Subject: CRM-18116 Fixing bug with editing assigned activities within case. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d6d49c3208e272873ce368d93a11c6ffd858a386;p=civicrm-core.git CRM-18116 Fixing bug with editing assigned activities within case. ---------------------------------------- * CRM-18116: CiviCase Users Unable to Edit & Add Activities on Cases They've Been Assigned https://issues.civicrm.org/jira/browse/CRM-18116 --- diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 9147cfb02c..4161112e24 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -102,7 +102,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { ) { $session = CRM_Core_Session::singleton(); $allCases = CRM_Case_BAO_Case::getCases(TRUE, $session->get('userID'), 'any'); - if (!array_key_exists($this->_caseId, $allCases)) { + if (!array_key_exists($this->_caseId[0], $allCases)) { CRM_Core_Error::fatal(ts('You are not authorized to access this page.')); } }