From d757b4aea7853e577d9cd1622a20630b033e45a2 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 26 Feb 2024 22:16:48 +0000 Subject: [PATCH] Update condition to check for @view_issues@ permission (#39995). Patch by Holger Just (@hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@22745 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/versions/_sidebar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/versions/_sidebar.html.erb b/app/views/versions/_sidebar.html.erb index 809b60ded..0ce93fe82 100644 --- a/app/views/versions/_sidebar.html.erb +++ b/app/views/versions/_sidebar.html.erb @@ -20,7 +20,7 @@ <%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %> - <% if @project.descendants.visible.any? %> + <% if @project.descendants.allowed_to(:view_issues).any? %>
  • <%= hidden_field_tag 'with_subprojects', 0, :id => nil %>