From febe7bb405468f9ee350a927d11daf14e8c94dbb Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Mar 2023 16:39:30 +0100 Subject: [PATCH] MainNavBar: hide navigation when not logged in --- templates/MainNavBar.php | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/templates/MainNavBar.php b/templates/MainNavBar.php index 133c205..a83a356 100644 --- a/templates/MainNavBar.php +++ b/templates/MainNavBar.php @@ -31,25 +31,32 @@ class MainNavBar extends NavBar + '; + + if (Registry::get('user')->isLoggedIn()) + { + echo ' '; + } echo ' - - '; }