diff --git a/app/helpers/models_helper.rb b/app/helpers/models_helper.rb index b955a2706..d55ff4d52 100644 --- a/app/helpers/models_helper.rb +++ b/app/helpers/models_helper.rb @@ -11,7 +11,7 @@ def group(files) def status_badges(model) badges = [] badges << content_tag(:span, icon("bi bi-stars", t("general.new")), class: "text-warning align-middle") if model.new? - badges << problem_icon(model.problems_including_files) + badges << problem_icon(model.problems_including_files.visible(current_user.problem_settings)) content_tag :span, safe_join(badges, " "), class: "status-badges" end diff --git a/app/views/model_files/show.html.erb b/app/views/model_files/show.html.erb index 591fac15a..730c59c71 100644 --- a/app/views/model_files/show.html.erb +++ b/app/views/model_files/show.html.erb @@ -29,7 +29,7 @@ <%= render 'form' %> <% end %> - <%= render partial: "problem", collection: @file.problems %> + <%= render partial: "problem", collection: @file.problems.visible(current_user.problem_settings) %> <%= card :secondary, "Actions" do %> <%= link_to "#{icon('cloud-download', 'Download')} Download".html_safe, library_model_model_file_path(@library, @model, @file, @file.extension.to_sym), {class: "btn btn-secondary"} %> diff --git a/app/views/models/show.html.erb b/app/views/models/show.html.erb index da0ebf451..4b2d3b2cc 100644 --- a/app/views/models/show.html.erb +++ b/app/views/models/show.html.erb @@ -84,7 +84,7 @@ <% end %> <% end %> - <%= render partial: "problem", collection: @model.problems %> + <%= render partial: "problem", collection: @model.problems.visible(current_user.problem_settings) %> <%= card(:secondary, 'Notes') do %>
<%= sanitize @model.notes %>