查询去掉作业,防抄袭

This commit is contained in:
yanxd 2014-01-17 16:13:05 +08:00
parent 8172516aff
commit 63782feeac
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class StoresController < ApplicationController
result = resultSet.to_a.dup
result.map { |res|
resultSet.to_a.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) ||