From 7d5837c5f171678d6e6b12de63bd48e899acb3a0 Mon Sep 17 00:00:00 2001 From: Xu Date: Fri, 29 Dec 2023 15:21:38 +0100 Subject: [PATCH] fix needed angeltypes in shifttypes and locations, search for more user related data in log --- includes/view/Locations_view.php | 2 +- resources/views/admin/shifttypes/view.twig | 30 ++++++++++++---------- src/Models/LogEntry.php | 7 ++++- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/includes/view/Locations_view.php b/includes/view/Locations_view.php index 8932ac55..6e9b3536 100644 --- a/includes/view/Locations_view.php +++ b/includes/view/Locations_view.php @@ -28,7 +28,7 @@ function location_view(Location $location, ShiftsFilterRenderer $shiftsFilterRen } $neededAngelTypes = ''; - if (auth()->can('admin_shifts')) { + if (auth()->can('admin_shifts') && $location->neededAngelTypes->isNotEmpty()) { $neededAngelTypes .= '

' . __('location.required_angels') . '