Skip to content

Commit

Permalink
Merge pull request #389 from colemanw/caseManager
Browse files Browse the repository at this point in the history
Always allow case administrators to view cases
  • Loading branch information
KarinG authored Nov 10, 2020
2 parents ddd5df8 + 91a3d78 commit 1d06a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wf_crm_webform_preprocess.inc
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ class wf_crm_webform_preprocess extends wf_crm_webform_base {
if (isset($_GET["case$n"]) && wf_crm_is_positive($_GET["case$n"])) {
$id = $_GET["case$n"];
$item = wf_civicrm_api('case', 'getsingle', ['id' => $id]);
if (array_intersect((array)wf_crm_aval($item, 'client_id'), $clients)) {
if (array_intersect((array) wf_crm_aval($item, 'client_id'), $clients) || user_access('access all cases and activities')) {
$this->ent['case'][$n] = ['id' => $id];
}
else {
Expand Down

0 comments on commit 1d06a28

Please sign in to comment.