Skip to content

Commit

Permalink
Merge pull request #1017 from compucorp/FOSFAB-316-add-permission
Browse files Browse the repository at this point in the history
FOSFAB-316: Add New Permission For Modifying Cases Through Webforms
  • Loading branch information
shahrukh-compuco authored Jun 13, 2024
2 parents 405335c + 23da3cc commit 6fabbaf
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 6fabbaf

Please sign in to comment.