From 23e99be0f6843f4a493db777b95b07c87dfc90e2 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Fri, 19 May 2023 15:45:26 +0100 Subject: [PATCH] remove redundant code branch --- app/helpers/navigation_items_helper.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index 21ab37be6..8f8c2d295 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -10,16 +10,6 @@ module NavigationItemsHelper NavigationItem.new("Sales logs", sales_logs_path, sales_logs_current?(path)), NavigationItem.new("Schemes", "/schemes", supported_housing_schemes_current?(path)), ].compact - elsif current_user.data_coordinator? && current_user.organisation.holds_own_stock? - [ - NavigationItem.new("Lettings logs", lettings_logs_path, lettings_logs_current?(path)), - NavigationItem.new("Sales logs", sales_logs_path, sales_logs_current?(path)), - NavigationItem.new("Schemes", "/schemes", subnav_supported_housing_schemes_path?(path)), - NavigationItem.new("Users", users_organisation_path(current_user.organisation), subnav_users_path?(path)), - NavigationItem.new("About your organisation", "/organisations/#{current_user.organisation.id}", subnav_details_path?(path)), - NavigationItem.new("Stock owners", stock_owners_organisation_path(current_user.organisation), stock_owners_path?(path)), - NavigationItem.new("Managing agents", managing_agents_organisation_path(current_user.organisation), managing_agents_path?(path)), - ].compact else [ NavigationItem.new("Lettings logs", lettings_logs_path, lettings_logs_current?(path)),