diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 12:21:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 12:21:45 +0000 |
commit | 54bb145c761344750d577669f8803bf02a1fd260 (patch) | |
tree | 033876ea34eb70fcc7d0450ce9b3010afd44946d | |
parent | a7bacf70fb187bcb32ab15671ef835fd60d2a01d (diff) | |
download | redmine-54bb145c761344750d577669f8803bf02a1fd260.tar.gz redmine-54bb145c761344750d577669f8803bf02a1fd260.zip |
Removed permissions logic from view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9351 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/messages/_form.html.erb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index 2ab04b2fb..482837e81 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -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 %> |