Skip to content
Permalink
Browse files
Show dashboard link if gateway-provider
  • Loading branch information
machristie committed Jul 2, 2017
1 parent d774332 commit eb48575ed9a61cbe7cc1a07ecec2af760a0db3ae
Showing 1 changed file with 4 additions and 7 deletions.
@@ -219,13 +219,10 @@ public static function create_nav_bar()
$navbar .= CommonUtilities::get_notices_ui( $notices);
}

if( Session::has("gateway-provider"))
{
if (Session::has("admin") || Session::has("admin-read-only") )
$navbar .= '<li class="' . $active . '"><a href="' . URL::to("/") . '/admin/dashboard"><span class="glyphicon glyphicon-user"></span>Admin Dashboard</a></li>';
else
$navbar .= '<li class="' . $active . '"><a href="' . URL::to("/") . '/account/dashboard"><span class="glyphicon glyphicon-user"></span>Dashboard</a></li>';
}
if ( (Session::has("admin") || Session::has("admin-read-only")) && !Session::has("gateway-provider") )
$navbar .= '<li class="' . $active . '"><a href="' . URL::to("/") . '/admin/dashboard"><span class="glyphicon glyphicon-user"></span>Admin Dashboard</a></li>';
else
$navbar .= '<li class="' . $active . '"><a href="' . URL::to("/") . '/account/dashboard"><span class="glyphicon glyphicon-user"></span>Dashboard</a></li>';

$navbar .= '<li class="dropdown' . (Session::get("nav-active") == 'user-menu' ? ' active' : '') . '">

0 comments on commit eb48575

Please sign in to comment.