* * @return boolean true if impersonate addon is totally supported, false in other case */ function LSaddon_impersonate_support() { return True; } function impersonate($object) { if (LSsession::changeAuthUser($object)) { LSsession::addInfo(getFData( _('Successfully reconnected as %{name}.'), $object->getDisplayName() )); LSurl::redirect('?LSsession_refresh'); return True; } LSerror :: addErrorCode('IMPERSONATE_01', $object->getDisplayName()); return False; }