移动端版本 管理 可以下载

This commit is contained in:
lizanle 2015-07-21 10:52:41 +08:00
parent b936b24704
commit b3d2754415
1 changed files with 2 additions and 0 deletions

View File

@ -1850,6 +1850,8 @@ module ApplicationHelper
candown = true
elsif attachment.container.class.to_s=="StudentWork"
candown = true
elsif attachment.container.class.to_s=="PhoneAppVersion"
candown = true
elsif attachment.container_type == "Bid" && attachment.container && attachment.container.courses
course = attachment.container.courses.first
candown = User.current.member_of_course?(attachment.container.courses.first) || (course.is_public == 1 && attachment.is_public == 1)