Skip to content

Commit

Permalink
Set ufID and userID in the session when bootstrapping for a REST call
Browse files Browse the repository at this point in the history
  • Loading branch information
davidknoll committed Oct 11, 2015
1 parent 6b73292 commit f320e5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Utils/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,11 @@ public function loadCMSBootstrap() {
}
}

if ($uid) {
if ($uid && $contact_id) {
CRM_Utils_System::loadBootStrap(array('uid' => $uid), TRUE, FALSE);
$session = CRM_Core_Session::singleton();
$session->set('ufID', $uid);
$session->set('userID', $contact_id);
return NULL;
}
else {
Expand Down

0 comments on commit f320e5c

Please sign in to comment.