Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master 5308fe891 -> cd0cba97e


fixing invalid admin warning


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/cd0cba97
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/cd0cba97
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/cd0cba97

Branch: refs/heads/master
Commit: cd0cba97e5dd1324912c8abeda17ef28e8648c41
Parents: 5308fe8
Author: scnakandala <[email protected]>
Authored: Tue Dec 15 11:11:56 2015 -0500
Committer: scnakandala <[email protected]>
Committed: Tue Dec 15 11:11:56 2015 -0500

----------------------------------------------------------------------
 app/controllers/AccountController.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cd0cba97/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php 
b/app/controllers/AccountController.php
index bb469dd..3f1bd6b 100755
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -154,7 +154,12 @@ class AccountController extends BaseController
             if(Session::get("admin") || Session::get("admin-read-only") || 
Session::get("authorized-user")){
                 return $this->initializeWithAiravata($username);
             }
-            return Redirect::to("admin/dashboard");
+
+            if(Session::get("admin") || Session::get("admin-read-only")){
+                return Redirect::to("admin/dashboard");
+            }else{
+                return Redirect::to("home");
+            }
         }
 
     }

Reply via email to