mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改列表页的用户id
This commit is contained in:
@@ -8,7 +8,7 @@ class ProjectsController < ApplicationController
|
|||||||
def index
|
def index
|
||||||
is_admin = current_user && current_user&.admin?
|
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
|
@total_count = scope.size
|
||||||
@projects = paginate(scope)
|
@projects = paginate(scope)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user