From: David Knoll Date: Sun, 11 Oct 2015 15:45:20 +0000 (+0100) Subject: Set ufID and userID in the session when bootstrapping for a REST call X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f320e5cd2fd5ec881b613d4afb9c4839839dcac3;p=civicrm-core.git Set ufID and userID in the session when bootstrapping for a REST call --- diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index bb82f5c440..ca96341cf5 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -707,8 +707,11 @@ class CRM_Utils_REST { } } - 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 {