diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 09:07:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 09:07:33 +0000 |
commit | e04c819895cd31cb6639992e4dbe3296a19ac079 (patch) | |
tree | 85208362ee0dc299a0cd492ae07c6441a85c0efb /app/views/attachments | |
parent | 9d3f3289b887a25f6d84bbb84afedad831e41be6 (diff) | |
download | redmine-e04c819895cd31cb6639992e4dbe3296a19ac079.tar.gz redmine-e04c819895cd31cb6639992e4dbe3296a19ac079.zip |
Don't check if attachments are editable individually.
git-svn-id: http://svn.redmine.org/redmine/trunk@13935 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r-- | app/views/attachments/_links.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index cc54b0137..001a038db 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -2,7 +2,7 @@ <div class="contextual"> <%= link_to image_tag('edit.png'), container_attachments_edit_path(container), - :title => l(:label_edit_attachments) if attachments.any?(&:editable?) %> + :title => l(:label_edit_attachments) if options[:editable] %> </div> <% for attachment in attachments %> <p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%> |