#1477 PedroTeixido's patch

This commit is contained in:
Karel Pičman 2023-10-04 12:46:04 +02:00
parent 6a1985255f
commit e66f8c4f88
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@
<%= render partial: 'dmsf/sidebar' %>
<% project_or_folder = @folder? @folder : @project %>
<% if project_or_folder&.watchers.present? %>
<% if project_or_folder&.watchers.present? && User.current.allowed_to?(:view_dmsf_folder_watchers, @project) %>
<div id="watchers">
<% if @folder %>
<%= render partial: 'watchers/watchers', locals: { watched: @folder } %>

View File

@ -169,7 +169,7 @@
<% end %>
<span class="pagination"><%= pagination_links_full @revision_pages, @revision_count %></span>
<% if @file.watchers.present? %>
<% if @file.watchers.present? && User.current.allowed_to?(:view_dmsf_file_watchers, @project) %>
<% content_for :sidebar do %>
<div id="watchers">
<%= render partial: 'watchers/watchers', locals: { watched: @file } %>