Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master 64b06ccf4 -> 8ac73a074


fixing role not properly set to session 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/8ac73a07
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/8ac73a07
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/8ac73a07

Branch: refs/heads/master
Commit: 8ac73a0745bfc5c99818aa493b0607a66b0ef732
Parents: 64b06cc
Author: Supun Nakandala <[email protected]>
Authored: Fri Sep 4 22:57:03 2015 +0530
Committer: Supun Nakandala <[email protected]>
Committed: Fri Sep 4 22:57:03 2015 +0530

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/8ac73a07/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php 
b/app/controllers/AccountController.php
index b542b3b..ada3349 100755
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -108,6 +108,9 @@ class AccountController extends BaseController
         if 
(in_array(Config::get('pga_config.wsis')['read-only-admin-role-name'], 
$userRoles)) {
             Session::put("admin-read-only", true);
         }
+        if (in_array(Config::get('pga_config.wsis')['user-role-name'], 
$userRoles)) {
+            Session::put("authorized-user", true);
+        }
 
         $username = $userProfile['username'];
         CommonUtilities::store_id_in_session($username);

Reply via email to