|
|
|
@ -13,7 +13,7 @@ class Weapps::ShixunSearchService < ApplicationService
|
|
|
|
|
shixuns = laboratory.shixuns.published.no_jupyter
|
|
|
|
|
|
|
|
|
|
if type == "mine"
|
|
|
|
|
@shixuns = @shixuns.where(id: User.current.shixuns)
|
|
|
|
|
shixuns = shixuns.where(id: User.current.shixuns)
|
|
|
|
|
else
|
|
|
|
|
# 超级管理员用户显示所有未隐藏的实训、非管理员显示所有已发布的实训(对本单位公开且未隐藏未关闭)
|
|
|
|
|
if User.current.admin? || User.current.business? || !User.current.school_id
|
|
|
|
|