Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOSFAB-316: Add New Permission For Modifying Cases Through Webforms #1017

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading