From 0380cdaf211a467c380d5a41b97f0f7f8a322411 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 17 Jan 2014 08:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9A=90=E8=97=8F=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=87=8C=E7=9C=8B=E5=BE=97=E5=88=B0=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E4=B8=8B=E8=BD=BD=E4=B8=8D=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/stores_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/stores_controller.rb b/app/controllers/stores_controller.rb index 3c9b1708f..bff90c75f 100644 --- a/app/controllers/stores_controller.rb +++ b/app/controllers/stores_controller.rb @@ -14,6 +14,7 @@ class StoresController < ApplicationController result.map { |res| if(res.container.nil? || (res.container.class.to_s=="Project" && res.container.is_public == false) || + (res.container.has_attribute?(:project) && res.container.project.is_public == false) || (res.container.class.to_s=="HomeworkAttach" && res.container.bid.reward_type == 3) || false )