|
|
|
@ -1844,7 +1844,11 @@ module ApplicationHelper
|
|
|
|
|
attachment.container.board.course
|
|
|
|
|
course = attachment.container.board.course
|
|
|
|
|
candown= User.current.member_of_course?(course) || (course.is_public==1 && attachment.is_public == 1)
|
|
|
|
|
elsif attachment.container.class.to_s=="HomeworkAttach" && attachment.container.bid.reward_type == 3
|
|
|
|
|
elsif attachment.container.class.to_s=="HomeworkAttach"
|
|
|
|
|
candown = true
|
|
|
|
|
elsif attachment.container.class.to_s=="StudentWorksScore"
|
|
|
|
|
candown = true
|
|
|
|
|
elsif attachment.container.class.to_s=="StudentWork"
|
|
|
|
|
candown = true
|
|
|
|
|
elsif attachment.container_type == "Bid" && attachment.container && attachment.container.courses
|
|
|
|
|
course = attachment.container.courses.first
|
|
|
|
|