Skip to content

Commit

Permalink
Always allow case administrators to view cases
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Nov 9, 2020
1 parent 0d2c439 commit 91a3d78
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 91a3d78

Please sign in to comment.