diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/activities/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/versions/_sidebar.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index cb0bef9dc..e5176d859 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -50,7 +50,7 @@ </li> <% end %> </ul> -<% if @project && @project.descendants.active.any? %> +<% if @project && @project.descendants.visible.any? %> <%= hidden_field_tag 'with_subprojects', 0, :id => nil %> <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p> <% end %> diff --git a/app/views/versions/_sidebar.html.erb b/app/views/versions/_sidebar.html.erb index aecb7d131..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.active.any? %> + <% if @project.descendants.allowed_to(:view_issues).any? %> <li> <%= hidden_field_tag 'with_subprojects', 0, :id => nil %> <label> |