Browse Source

修改列表页的用户id

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
bfbcb350f7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/projects_controller.rb

+ 1
- 1
app/controllers/projects_controller.rb View File

@@ -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…
Cancel
Save