summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-02-26 22:16:48 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-02-26 22:16:48 +0000
commitd757b4aea7853e577d9cd1622a20630b033e45a2 (patch)
treedf68cbad070c2f64cd36897bf399b0bbd48bacc0
parent127331d58f7526bb56272323d7c920ad1df762d8 (diff)
downloadredmine-d757b4aea7853e577d9cd1622a20630b033e45a2.tar.gz
redmine-d757b4aea7853e577d9cd1622a20630b033e45a2.zip
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
-rw-r--r--app/views/versions/_sidebar.html.erb2
1 files changed, 1 insertions, 1 deletions
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) %>
</label>
</li>
- <% if @project.descendants.visible.any? %>
+ <% if @project.descendants.allowed_to(:view_issues).any? %>
<li>
<%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
<label>