From 5c9e1344d3312c450ecbdbeef1146197e8eb2d30 Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:19:39 +0200 Subject: [PATCH] fix: only show taxi menu if enabled (closes #1848) --- .../src/components/shared/nav/dropdowns/citizen-dropdown.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/components/shared/nav/dropdowns/citizen-dropdown.tsx b/apps/client/src/components/shared/nav/dropdowns/citizen-dropdown.tsx index b32ebb35e..400fee464 100644 --- a/apps/client/src/components/shared/nav/dropdowns/citizen-dropdown.tsx +++ b/apps/client/src/components/shared/nav/dropdowns/citizen-dropdown.tsx @@ -26,7 +26,8 @@ export function CitizenDropdown() { { name: t("taxi"), href: "/taxi", - show: hasPermissions([Permissions.ViewTaxiCalls, Permissions.ManageTaxiCalls]), + show: + enabled.TAXI && hasPermissions([Permissions.ViewTaxiCalls, Permissions.ManageTaxiCalls]), }, { name: t("bleeter"), href: "/bleeter", show: enabled.BLEETER }, { name: t("truckLogs"), href: "/truck-logs", show: enabled.TRUCK_LOGS },