只有编辑的时候才允许删除资源

This commit is contained in:
lizanle 2015-10-24 15:37:27 +08:00
parent 2a76461cd1
commit 5e4e5419f1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@
<div class=" fl" style="width: 600px">
<%#= link_to_attachments_course @topic, :author => false %>
<% if @article.attachments.any?%>
<% options = {:author => true, :deletable => true} %>
<% options = {:author => true, :deletable => false} %>
<%= render :partial => 'blog_comments/attachments_links', :locals => {:attachments => @article.attachments, :options => options, :is_float => true} %>
<% end %>
</div>