You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by nd...@apache.org on 2016/05/03 22:29:36 UTC
airavata-php-gateway git commit: Bug Fix
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop 24be2a30c -> 25d482b36
Bug Fix
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/25d482b3
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/25d482b3
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/25d482b3
Branch: refs/heads/develop
Commit: 25d482b3622c890c66050436c8a177c3ef261ef3
Parents: 24be2a3
Author: Nipurn Doshi <ni...@gmail.com>
Authored: Tue May 3 16:28:54 2016 -0400
Committer: Nipurn Doshi <ni...@gmail.com>
Committed: Tue May 3 16:28:54 2016 -0400
----------------------------------------------------------------------
app/libraries/CommonUtilities.php | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/25d482b3/app/libraries/CommonUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/CommonUtilities.php b/app/libraries/CommonUtilities.php
index 4f4b2c7..d04b881 100644
--- a/app/libraries/CommonUtilities.php
+++ b/app/libraries/CommonUtilities.php
@@ -194,18 +194,19 @@ class CommonUtilities
// right-aligned content
- if (Session::has('loggedin') && (Session::has('authorized-user') || Session::has('admin')
- || Session::has('admin-read-only'))){
+ if (Session::has('loggedin')) {
$active = "";
if (Session::has("nav-active")) {
if ("user-console" == Session::get("nav-active"))
$active = " active ";
}
- //notification bell
- $notices = array();
- $notices = CommonUtilities::get_all_notices();
- echo CommonUtilities::get_notices_ui( $notices);
+ if( Session::has('authorized-user') || Session::has('admin') || Session::has('admin-read-only')){
+ //notification bell
+ $notices = array();
+ $notices = CommonUtilities::get_all_notices();
+ echo CommonUtilities::get_notices_ui( $notices);
+ }
if (Session::has("admin") || Session::has("admin-read-only"))