You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by nd...@apache.org on 2016/02/16 17:40:25 UTC

[3/4] airavata-php-gateway git commit: Providing alternate routes to normal users to access dashboard since AdminController is only accessible to Admins.

Providing alternate routes to normal users to access dashboard since AdminController is only accessible to Admins.


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/690a2043
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/690a2043
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/690a2043

Branch: refs/heads/develop
Commit: 690a2043222d558cf47d85ad417566b5525d379a
Parents: bac3b46
Author: Nipurn Doshi <ni...@gmail.com>
Authored: Tue Feb 16 11:32:31 2016 -0500
Committer: Nipurn Doshi <ni...@gmail.com>
Committed: Tue Feb 16 11:32:31 2016 -0500

----------------------------------------------------------------------
 app/controllers/AccountController.php | 5 ++++-
 app/routes.php                        | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/690a2043/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index b43bf29..d1592f4 100755
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -230,7 +230,7 @@ class AccountController extends BaseController
             return View::make('home');
         }
 
-        return Redirect::to("admin/dashboard");
+        return Redirect::to("account/dashboard");
     }
 
     public function forgotPassword()
@@ -425,4 +425,7 @@ class AccountController extends BaseController
         return Redirect::to('home');
     }
 
+    public function dashboard(){
+        return View::make("account/dashboard");
+    }
 }

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/690a2043/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index 2d0468e..4a6b6ee 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -22,6 +22,8 @@ Route::get("login", "AccountController@loginView");
 
 Route::post("login", "AccountController@loginSubmit");
 
+Route::get("account/dashboard", "AccountController@dashboard");
+
 //Route::get("callback-url", "AccountController@oauthCallback");
 
 Route::get("logout", "AccountController@logout");