From d6d49c3208e272873ce368d93a11c6ffd858a386 Mon Sep 17 00:00:00 2001 From: Joseph Lacey Date: Sun, 5 Jun 2016 20:34:52 -0600 Subject: [PATCH] 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 --- CRM/Case/Form/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.')); } } -- 2.25.1