read txt attachment

This commit is contained in:
yanxd 2014-05-23 09:18:17 +08:00
parent 0ec7d6b4e7
commit 6b5fda1c78
1 changed files with 1 additions and 1 deletions

View File

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