airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndo...@apache.org
Subject airavata-php-gateway git commit: Fixing Storage UI Access issues
Date Wed, 16 Mar 2016 16:41:21 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 5e723741f -> 8ac405175


Fixing Storage UI Access issues


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

Branch: refs/heads/develop
Commit: 8ac405175f670fb7b19687494e94fee0549cb703
Parents: 5e72374
Author: Nipurn Doshi <nipunhere@gmail.com>
Authored: Wed Mar 16 12:39:53 2016 -0400
Committer: Nipurn Doshi <nipunhere@gmail.com>
Committed: Wed Mar 16 12:39:53 2016 -0400

----------------------------------------------------------------------
 app/libraries/CommonUtilities.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/8ac40517/app/libraries/CommonUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/CommonUtilities.php b/app/libraries/CommonUtilities.php
index 2dcddd8..92a8d31 100644
--- a/app/libraries/CommonUtilities.php
+++ b/app/libraries/CommonUtilities.php
@@ -194,7 +194,8 @@ class CommonUtilities
         }
 
         $active = "";
-        if( Session::has("nav-active") && Session::has('loggedin') ){
+        if(Session::has('loggedin') && (Session::has('authorized-user') || Session::has('admin')
+                || Session::has('admin-read-only'))){
             if( Session::get("nav-active") == "storage")
                 $active = "active";
             echo '<li class="' . $active . '"><a href="' . URL::to("/") . '/files/browse"><span
class="glyphicon glyphicon-folder-close"></span> Storage</a></li>';


Mime
View raw message