Skip to content

Commit

Permalink
Merge pull request #1001 from compucorp/CPO-1047-allow-anon-case
Browse files Browse the repository at this point in the history
CPO-147: Allow Anonymous User to submit case with roles via webform
  • Loading branch information
olayiwola-compucorp authored Feb 6, 2024
2 parents 62e054b + c4dd215 commit fda1d9f
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 fda1d9f

Please sign in to comment.