dev/core#1400 Users with 'view own cases' permission can't open resolved cases
authorKlaas Eikelboom <klaas.eikelboom@civicoop.org>
Wed, 24 Feb 2021 09:50:36 +0000 (10:50 +0100)
committerKlaas Eikelboom <klaas.eikelboom@civicoop.org>
Wed, 24 Feb 2021 09:59:58 +0000 (10:59 +0100)
CRM/Case/BAO/Case.php

index ec0bdaadd9608a324d20979fd863b1d6f0d083ec..f4671b98b98f6198bde311d67ecfb6b8d89d521f 100644 (file)
@@ -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');
     }