From ad57dbe331428659167b08e4369bdcaa90e2a39f Mon Sep 17 00:00:00 2001 From: Klaas Eikelboom Date: Wed, 24 Feb 2021 10:50:36 +0100 Subject: [PATCH] dev/core#1400 Users with 'view own cases' permission can't open resolved cases --- CRM/Case/BAO/Case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index ec0bdaadd9..f4671b98b9 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -523,7 +523,7 @@ HERESQL; $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'); } -- 2.25.1