Skip to content

Commit

Permalink
FOSFAB-316: Add new permission for modifying cases through webforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Shahrukh committed Jun 5, 2024
1 parent ccc6848 commit c5e9ff0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Civicase/Hook/Permissions/CaseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.'),
];
}

/**
Expand Down

0 comments on commit c5e9ff0

Please sign in to comment.