From c5e9ff0f49ea3531e239fa703e4119030bf14a9a Mon Sep 17 00:00:00 2001 From: Muhammad Shahrukh <> Date: Wed, 5 Jun 2024 22:17:04 +0500 Subject: [PATCH] FOSFAB-316: Add new permission for modifying cases through webforms --- CRM/Civicase/Hook/Permissions/CaseCategory.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Civicase/Hook/Permissions/CaseCategory.php b/CRM/Civicase/Hook/Permissions/CaseCategory.php index fe327fdec..fc200cc24 100644 --- a/CRM/Civicase/Hook/Permissions/CaseCategory.php +++ b/CRM/Civicase/Hook/Permissions/CaseCategory.php @@ -3,6 +3,7 @@ use CRM_Civicase_Service_CaseCategoryPermission as CaseCategoryPermission; use CRM_Case_BAO_CaseType as CaseType; use CRM_Civicase_Helper_CaseCategory as CaseCategoryHelper; +use CRM_Civicase_ExtensionUtil as E; /** * Case Category Permissions hook. @@ -58,6 +59,11 @@ private function addCivicaseDefaultPermissions() { $caseCategoryPermissions['BASIC_CASE_CATEGORY_INFO']['label'], $caseCategoryPermissions['BASIC_CASE_CATEGORY_INFO']['description'], ]; + + $this->permissions['Update cases with user role via webform'] = [ + 'label' => E::ts('Update cases via webform where user has a case role'), + 'description' => E::ts('Users with this permission will be able to update a case via webform if their linked contact record has a current role on a case.'), + ]; } /**