|
|
@ -70,7 +70,6 @@ module ApplicationHelper
|
|
|
|
attach = Attachment.find(attachment_id)
|
|
|
|
attach = Attachment.find(attachment_id)
|
|
|
|
# 条件取否,result结果为true则不能下载
|
|
|
|
# 条件取否,result结果为true则不能下载
|
|
|
|
result = attach.is_public == 0 && attach.author != User.current && !attach.get_apply_resource_status(attach.id, User.current.id) && !attach_show_allow(attach)
|
|
|
|
result = attach.is_public == 0 && attach.author != User.current && !attach.get_apply_resource_status(attach.id, User.current.id) && !attach_show_allow(attach)
|
|
|
|
return result
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Time 2015-03-24 15:27:29
|
|
|
|
# Time 2015-03-24 15:27:29
|
|
|
|