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 %>