Skip to content

Commit

Permalink
CPO-147: Allow Anonymous User to submit case with roles via webform
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Jan 24, 2024
1 parent abadcd4 commit c4dd215
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Civicase/Service/CaseRoleCreationPostProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ private function setRelationshipsInactive(array $relIds, string $endDate) {
* Activity Subject.
*/
private function createCaseActivity($caseId, $activityType, $subject) {
if (empty(CRM_Core_Session::getLoggedInContactID())) {
return;
}

civicrm_api3('Activity', 'create', [
'case_id' => $caseId,
'target_contact_id' => $this->getCaseClients($caseId),
Expand Down

0 comments on commit c4dd215

Please sign in to comment.