|
|
|
@ -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)
|
|
|
|
|