From c4731b677523e034635772c34650f753285e80a3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 28 Sep 2024 11:22:34 +0000 Subject: [PATCH] fix: show staff calendar for mods --- config/app.php | 2 +- resources/views/layouts/topbar.blade.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 110886d..811b5a3 100755 --- a/config/app.php +++ b/config/app.php @@ -27,7 +27,7 @@ | Needs to be updated manually for each iteration we do. | */ - 'version' => '1.0.3', + 'version' => '1.0.4', /* |-------------------------------------------------------------------------- diff --git a/resources/views/layouts/topbar.blade.php b/resources/views/layouts/topbar.blade.php index b64b49e..fc88c33 100644 --- a/resources/views/layouts/topbar.blade.php +++ b/resources/views/layouts/topbar.blade.php @@ -56,6 +56,19 @@ {{ $calendar->name }} @endforeach + + @auth + @if(\Auth::user()->isModeratorOrAbove()) + @foreach (App\Models\Calendar::where('public', 0)->get() as $calendar) + + @endforeach + @endif + @endauth + @auth