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 23da3cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CRM/Civicase/Hook/Permissions/CaseCategory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use CRM_Civicase_Service_CaseCategoryPermission as CaseCategoryPermission;
use CRM_Case_BAO_CaseType as CaseType;
use CRM_Civicase_ExtensionUtil as E;
use CRM_Civicase_Helper_CaseCategory as CaseCategoryHelper;
use CRM_Civicase_Service_CaseCategoryPermission as CaseCategoryPermission;

/**
* 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 23da3cc

Please sign in to comment.