diff --git a/web/app/models/Auth.php b/web/app/models/Auth.php index 61d4c9b..1285bc7 100644 --- a/web/app/models/Auth.php +++ b/web/app/models/Auth.php @@ -30,6 +30,10 @@ class Auth { return false; } + if (!isset($myUser[$name])) { + return false; + } + return $myUser[$name]; } diff --git a/web/app/views/sidebar.php b/web/app/views/sidebar.php index 85f26b1..2c56467 100644 --- a/web/app/views/sidebar.php +++ b/web/app/views/sidebar.php @@ -4,6 +4,18 @@ $parsedown = HTML::parsedown(['username_with_color' => true]); ?> + +