From e3ef19794c259b44d9d0fff4eca5730a4069e7b1 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Mon, 14 Aug 2017 08:22:57 +0200 Subject: [PATCH] Only show autowatcch option, if user can view issues --- app/views/users/_autowatch_involved_issue.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_autowatch_involved_issue.html.erb b/app/views/users/_autowatch_involved_issue.html.erb index 32c6f13c..11b2cc17 100644 --- a/app/views/users/_autowatch_involved_issue.html.erb +++ b/app/views/users/_autowatch_involved_issue.html.erb @@ -1,4 +1,4 @@ -<% if Additionals.settings[:issue_autowatch_involved].to_i == 1 %> +<% if Additionals.settings[:issue_autowatch_involved].to_i == 1 && User.current.allowed_to?(:view_issues, nil, global: true) %> <%= labelled_fields_for :pref, @user.pref do |pref_fields| %>

<%= pref_fields.check_box :autowatch_involved_issue %>

<% end %>