Repository: airavata-php-gateway Updated Branches: refs/heads/master 31c3a6904 -> df7ca617a
fixing minor issue 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/df7ca617 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/df7ca617 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/df7ca617 Branch: refs/heads/master Commit: df7ca617ada702873365d7d0e99067ea02a216a3 Parents: 31c3a69 Author: Supun Nakandala <[email protected]> Authored: Tue Sep 8 10:47:18 2015 +0530 Committer: Supun Nakandala <[email protected]> Committed: Tue Sep 8 10:47:18 2015 +0530 ---------------------------------------------------------------------- app/controllers/AccountController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/df7ca617/app/controllers/AccountController.php ---------------------------------------------------------------------- diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index ed64903..0be103d 100755 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -122,7 +122,10 @@ class AccountController extends BaseController CommonUtilities::store_id_in_session($username); Session::put("gateway_id", Config::get('pga_config.airavata')['gateway-id']); - return $this->initializeWithAiravata($username); + if(Session::get("admin") || Session::get("admin-read-only") || Session::get("read-only-admin-role-name")){ + return $this->initializeWithAiravata($username); + } + return Redirect::to("home"); } public function loginSubmit()
