修改隐藏项目里看得到的内容,下载不能

This commit is contained in:
yanxd 2014-01-17 08:20:05 +08:00
parent 9d1940427f
commit 0380cdaf21
1 changed files with 1 additions and 0 deletions

View File

@ -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
)