|
|
@ -209,7 +209,7 @@ private
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def read_authorize
|
|
|
|
def read_authorize
|
|
|
|
if @attachment.container_type == "HomeworkAttach"
|
|
|
|
if @attachment.container_type == "HomeworkAttach" || @attachment.container_type == 'Bid'
|
|
|
|
true
|
|
|
|
true
|
|
|
|
#User.current.allowed_to?(:view_homework_attaches, @attachment.project) ? true : deny_access
|
|
|
|
#User.current.allowed_to?(:view_homework_attaches, @attachment.project) ? true : deny_access
|
|
|
|
else
|
|
|
|
else
|
|
|
|