修改隐藏项目里看得到的内容,下载不能
This commit is contained in:
parent
9d1940427f
commit
0380cdaf21
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue