Skip to content

Commit

Permalink
fix: only show taxi menu if enabled (closes #1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 20, 2023
1 parent d143938 commit 5c9e134
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 5c9e134

Please sign in to comment.