diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 750a2d1b6..a7069e87e 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -68,7 +68,7 @@ class RepositoriesController < ApplicationController if is_sigle_identifier?(User.current, @repository.identifier) # REDO: 那些人有权限forked项目 g = Gitlab.client - gproject = g.post ("/projects/fork/#{@project.gpid}?user_id=#{User.current.id}") + gproject = g.post ("/projects/fork/#{@project.gpid}?user_id=#{User.current.gid}") if gproject copy_project(@project, gproject) end