Display issue form fields according to permissions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8227 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-15 10:41:49 +00:00
parent 31f2e848b5
commit b6e6f557f0
6 changed files with 162 additions and 23 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<div class="box">
<% if @edit_allowed || !@allowed_statuses.empty? %>
<fieldset class="tabular"><legend><%= l(:label_change_properties) %></legend>
<%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
<%= render :partial => 'form', :locals => {:f => f} %>
</fieldset>
<% end %>
<% if User.current.allowed_to?(:log_time, @project) %>