Removed permissions logic from view.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9351 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-06 12:21:45 +00:00
parent a7bacf70fb
commit 54bb145c76
1 changed files with 6 additions and 2 deletions

View File

@ -6,13 +6,17 @@
<p><label for="message_subject"><%= l(:field_subject) %></label><br />
<%= f.text_field :subject, :size => 120, :id => "message_subject" %>
<% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
<% unless replying %>
<% if @message.safe_attribute? 'sticky' %>
<label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label>
<% end %>
<% if @message.safe_attribute? 'locked' %>
<label><%= f.check_box :locked %><%= l(:label_board_locked) %></label>
<% end %>
<% end %>
</p>
<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %>
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
<p><label><%= l(:label_board) %></label><br />
<%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
<% end %>