From deec0025c61337217c0cab90ebcb1fced6a7b320 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 14 Jul 2023 10:19:58 +0100 Subject: [PATCH] Update filter content --- app/views/logs/_log_filters.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/logs/_log_filters.html.erb b/app/views/logs/_log_filters.html.erb index b2a81a6a6..cf83194f2 100644 --- a/app/views/logs/_log_filters.html.erb +++ b/app/views/logs/_log_filters.html.erb @@ -44,11 +44,11 @@ category: "user", } %> - <% if @current_user.support? || @current_user.organisation.has_stock_owners? && request.path == "/lettings-logs" %> + <% if @current_user.support? || @current_user.organisation.stock_owners.count > 1 && request.path == "/lettings-logs" %> <%= render partial: "filters/radio_filter", locals: { f:, options: { - "all": { label: "All" }, + "all": { label: "Any owning organisation" }, "specific_org": { label: "Specific owning organisation", conditional_filter: { @@ -59,7 +59,7 @@ }, }, }, - label: "Owning organisation", + label: "Owned by", category: "owning_organisation_select", } %> <% end %>