airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: AIRAVATA-2235 Only display User Settings for approved user
Date Wed, 30 Nov 2016 22:26:06 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop b639b6508 -> 1e2b71df3


AIRAVATA-2235 Only display User Settings for approved user


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

Branch: refs/heads/develop
Commit: 1e2b71df39081805d0f9b7bfc886b8de00b8408d
Parents: b639b65
Author: Marcus Christie <machrist@iu.edu>
Authored: Wed Nov 30 17:17:40 2016 -0500
Committer: Marcus Christie <machrist@iu.edu>
Committed: Wed Nov 30 17:17:40 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/1e2b71df/app/libraries/CommonUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/CommonUtilities.php b/app/libraries/CommonUtilities.php
index daa0923..1aea1df 100644
--- a/app/libraries/CommonUtilities.php
+++ b/app/libraries/CommonUtilities.php
@@ -233,7 +233,9 @@ class CommonUtilities
                 }
             }
 
-            $navbar .= '<li><a href="' . URL::to('/') . '/account/settings"><span
class="glyphicon glyphicon-cog"></span> User settings</a></li>';
+            if( Session::has('authorized-user') || Session::has('admin') || Session::has('admin-read-only')){
+                $navbar .= '<li><a href="' . URL::to('/') . '/account/settings"><span
class="glyphicon glyphicon-cog"></span> User settings</a></li>';
+            }
             $navbar .= '<li><a href="' . URL::to('/') . '/logout"><span class="glyphicon
glyphicon-log-out"></span> Log out</a></li>';
             $navbar .= '</ul></li>';
         } else {


Mime
View raw message