----------------------------------------
* CRM-18116: CiviCase Users Unable to Edit & Add Activities on Cases They've Been Assigned
https://issues.civicrm.org/jira/browse/CRM-18116
) {
$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.'));
}
}