修改了自己能看到自己下载的文件

exceptionHandle
huangjingquan 12 years ago
parent abea7add69
commit 48f34f25ae

@ -31,7 +31,7 @@
<tr> <tr>
<td colspan="2" width="580px" > <td colspan="2" width="580px" >
<% unless User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',5, 10, 7)).size >0) %> <% if (User.current == homework.user) || (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',3,7, 9)).size >0) %>
<p class="font_description"> <p class="font_description">
<% options = {:author => true, :deletable => attach_delete(homework)} %> <% options = {:author => true, :deletable => attach_delete(homework)} %>
<%= render :partial => 'attachments/links', <%= render :partial => 'attachments/links',

Loading…
Cancel
Save