From 22d639402cadbedb410315d4c80c0797752f9413 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 6 Apr 2012 13:22:27 +0000 Subject: [PATCH] #safe_attribute? not defined in 1.3-stable. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9357 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/messages/_form.html.erb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index 916f460e1..b3b0e130e 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -6,17 +6,13 @@


<%= f.text_field :subject, :size => 120, :id => "message_subject" %> -<% unless replying %> - <% if @message.safe_attribute? 'sticky' %> +<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> - <% end %> - <% if @message.safe_attribute? 'locked' %> - <% end %> <% end %>

-<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %> +<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %>


<%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %>

<% end %> -- 2.39.5