Skip to content
Permalink
Browse files
AIRAVATA-2451 Redirect dashboard->login when not logged in
  • Loading branch information
machristie committed Jun 26, 2017
1 parent 11aa84d commit 5a25574e3d875f890f1ed3bb9bf4c15ba9d6f088
Showing 1 changed file with 5 additions and 0 deletions.
@@ -307,6 +307,11 @@ public function forgotPasswordSubmit()

public function dashboard(){

// dashboard requires that the user is logged in, if not redirect to login
if (!CommonUtilities::id_in_session()) {
return Redirect::to("login");
}

$userRoles = Session::get("roles");
if (Session::has("user-profile")) {
$userEmail = Session::get("user-profile")->emails[0];

0 comments on commit 5a25574

Please sign in to comment.