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 %>