Skip to content

Commit

Permalink
Merge pull request #19666 from kainuk/dev_core_1400
Browse files Browse the repository at this point in the history
dev/core#1400 Users with 'view own cases' permission can't open resolved cases
  • Loading branch information
eileenmcnaughton authored Feb 26, 2021
2 parents 5c6ea43 + ad57dbe commit 534804a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Case/BAO/Case.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public static function getCases($allCases = TRUE, $params = [], $context = 'dash
$whereClauses[] = "(case_relationship.contact_id_b = {$userID} OR case_relationship.contact_id_a = {$userID})";
$whereClauses[] = 'case_relationship.is_active';
}
if (empty($params['status_id']) && ($type == 'upcoming' || $type == 'any')) {
if (empty($params['status_id']) && $type == 'upcoming') {
$whereClauses[] = "civicrm_case.status_id != " . CRM_Core_PseudoConstant::getKey('CRM_Case_BAO_Case', 'case_status_id', 'Closed');
}

Expand Down

0 comments on commit 534804a

Please sign in to comment.