diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-13 20:40:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-13 20:40:03 +0000 |
commit | 7d501eaf81f32c6cf6e361192968aacbe18ff36c (patch) | |
tree | c4a45eeedcf135666b6df315c1dca69c73b9c88d /app/views/issues/new.html.erb | |
parent | 59c1141e08637a923a0aa80a86c8f8d6dbf0cb41 (diff) | |
download | redmine-7d501eaf81f32c6cf6e361192968aacbe18ff36c.tar.gz redmine-7d501eaf81f32c6cf6e361192968aacbe18ff36c.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8200 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/new.html.erb')
-rw-r--r-- | app/views/issues/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 48d786879..615263b23 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -10,7 +10,7 @@ <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> - <% if User.current.allowed_to?(:add_issue_watchers, @project) -%> + <% if @issue.safe_attribute? 'watcher_user_ids' -%> <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> <% @issue.project.users.sort.each do |user| -%> <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> |