SAAS-1135 - fix help button url for logged out users

This commit is contained in:
Duncan Sommerville 2015-11-19 11:08:35 -05:00
parent e4027c1e1f
commit c328515f4b
7 changed files with 27 additions and 20 deletions

View file

@ -7,6 +7,15 @@ class ErrorController extends Zend_Controller_Action {
//We cannot show that.
$this->view->layout()->disableLayout();
$this->setupCSS();
// TODO: set Help button URL based on whether or not user is logged in
try {
$service_user = new Application_Service_UserService();
$service_user->getCurrentUser();
$this->view->helpUrl = Application_Common_OsPath::getBaseDir() . 'dashboard/help';
} catch (Exception $e) {
$this->view->helpUrl = HELP_URL;
}
}
public function errorAction() {