项目搜索增加用户信息搜索
This commit is contained in:
parent
d4762d2900
commit
005687442e
|
@ -37,7 +37,7 @@ class Projects::ListQuery < ApplicationQuery
|
|||
ids = Projects::ElasticsearchService.call(params[:search])
|
||||
items = items.where(platform: 'forge')
|
||||
if ids.present?
|
||||
items.where(id: ids).by_name_or_identifier(params[:search]).or.where(user_id: User.like(params[:search]).pluck(:id))
|
||||
items.where(id: ids).by_name_or_identifier(params[:search]).or(Project.visible.where(user_id: User.like(params[:search]).pluck(:id)))
|
||||
else
|
||||
items.by_name_or_identifier(params[:search])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue