Buchungen anlegen nur für Administratoren

This commit is contained in:
torsten 2026-11-19 10:48:32 +01:00
parent c8ec53ebdd
commit 6a2a9ea342
8 changed files with 67 additions and 32 deletions

View file

@ -621,6 +621,10 @@ function form_values_from_input(array $data): array
function page_booking_new(array $user, string $method): void
{
if (!auth_can_manage($user)) {
abort_page(403, 'Nur Administratoren dürfen Buchungen anlegen.');
}
$trailers = trailers_all();
$employees = employees_all();
if (!$trailers || !$employees) {