}
$session = CRM_Core_Session::singleton();
- $this->_currentUserId = $session->get('userID');
+ $this->_currentUserId = CRM_Core_Session::getLoggedInContactID();
$this->_currentlyViewedContactId = $this->get('contactId');
if (!$this->_currentlyViewedContactId) {