From ba5ca52258c5f0f4b526db9fe396e2e9550a3270 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 19 Oct 2022 14:55:41 +0100 Subject: [PATCH] feat: expand range of page visibility --- app/helpers/navigation_items_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index fee2ce0f5..e95bcee66 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -17,6 +17,7 @@ module NavigationItemsHelper 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("Housing providers", housing_providers_organisation_path(current_user.organisation), subnav_housing_providers_path?(path)), ].compact else [ @@ -37,6 +38,7 @@ module NavigationItemsHelper NavigationItem.new("Schemes", "/organisations/#{current_organisation_id}/schemes", subnav_supported_housing_schemes_path?(path)), NavigationItem.new("Users", "/organisations/#{current_organisation_id}/users", subnav_users_path?(path)), NavigationItem.new("About this organisation", "/organisations/#{current_organisation_id}", subnav_details_path?(path)), + NavigationItem.new("Housing providers", housing_providers_organisation_path, subnav_housing_providers_path?(path)), ].compact else [