summaryrefslogtreecommitdiffstats
path: root/app/views/watchers/_watchers.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/watchers/_watchers.html.erb')
-rw-r--r--app/views/watchers/_watchers.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/watchers/_watchers.html.erb b/app/views/watchers/_watchers.html.erb
index b53e09d50..25d852c87 100644
--- a/app/views/watchers/_watchers.html.erb
+++ b/app/views/watchers/_watchers.html.erb
@@ -8,6 +8,10 @@
</div>
<% end %>
+<% if User.current.allowed_to?(:"view_#{watched_klass_name}_watchers", watched.project) %>
<h3><%= l(:"label_#{watched_klass_name}_watchers") %> (<%= watched.watcher_users.size %>)</h3>
<%= watchers_list(watched) %>
+<% else %>
+<h3><%= l(:"label_#{watched_klass_name}_watchers") %></h3>
+<% end %>