forked from Gitlink/forgeplus
修改列表页的用户id
This commit is contained in:
parent
6088d71f90
commit
bfbcb350f7
|
@ -8,7 +8,7 @@ class ProjectsController < ApplicationController
|
|||
def index
|
||||
is_admin = current_user && current_user&.admin?
|
||||
|
||||
scope = Projects::ListQuery.call(params.merge(is_admin: is_admin))
|
||||
scope = Projects::ListQuery.call(params.merge(is_admin: is_admin, user_id: current_user.try(:id)))
|
||||
@total_count = scope.size
|
||||
@projects = paginate(scope)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue