$config = CRM_Core_Config::singleton();
$config->doNotResetCache = 1;
- $viewUser = CRM_Core_Permission::check('access user profiles');
$mainUfId = CRM_Core_BAO_UFMatch::getUFId($this->_cid);
$mainUser = NULL;
if ($mainUfId) {
$cmsUser = ($mainUfId && $otherUfId) ? TRUE : FALSE;
$this->assign('user', $cmsUser);
- $session = CRM_Core_Session::singleton();
-
$rowsElementsAndInfo = CRM_Dedupe_Merger::getRowsElementsAndInfo($this->_cid, $this->_oid);
$main = $this->_mainDetails = $rowsElementsAndInfo['main_details'];
$other = $this->_otherDetails = $rowsElementsAndInfo['other_details'];
}
$this->assign('rel_tables', $rowsElementsAndInfo['rel_tables']);
- $this->assign('userContextURL', $session->readUserContext());
+ $this->assign('userContextURL', CRM_Core_Session::singleton()->readUserContext());
}
public function addRules() {