From 6b5fda1c786e6ad1010e792fa037bdc76ca5c933 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 23 May 2014 09:18:17 +0800 Subject: [PATCH] read txt attachment --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index ed27d938..2f642f54 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -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