Skip to content
Permalink
Browse files
AIRAVATA-2441 Use landingpage for 'home' if user not logged in
  • Loading branch information
machristie committed Aug 9, 2017
1 parent aedf097 commit 0c044407923b752515e249a0099c6566125e340e
Showing 1 changed file with 11 additions and 1 deletion.
@@ -17,7 +17,17 @@ class HomeController extends BaseController {

public function getIndex()
{
Session::put("nav-active", "home");
Session::put("nav-active", "home");
// If not logged in and theme has a landing page, display the landing page
if (!CommonUtilities::id_in_session()){
try {
$theme = Theme::uses( Session::get("theme") );
// FIXME: can't figure out how to pass variables to the landingpage template
return View::make($theme->scope('landingpage')->location());
}catch (Exception $ex){
Log::debug("Theme has no landingpage view, will render standard home page", array($ex->getMessage()));
}
}
return View::make('home');
}

0 comments on commit 0c04440

Please sign in to comment.