You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2016/03/16 17:57:46 UTC
[11/11] airavata-php-gateway git commit: Fixing Storage UI Access
issues
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/master
Commit: 8ac405175f670fb7b19687494e94fee0549cb703
Parents: 5e72374
Author: Nipurn Doshi <ni...@gmail.com>
Authored: Wed Mar 16 12:39:53 2016 -0400
Committer: Nipurn Doshi <ni...@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>';