修正接口 项目owner为当前用户,同步gitlab端用户
This commit is contained in:
parent
f32cae9012
commit
50dfe5ce8b
|
@ -68,7 +68,7 @@ class RepositoriesController < ApplicationController
|
||||||
if is_sigle_identifier?(User.current, @repository.identifier)
|
if is_sigle_identifier?(User.current, @repository.identifier)
|
||||||
# REDO: 那些人有权限forked项目
|
# REDO: 那些人有权限forked项目
|
||||||
g = Gitlab.client
|
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
|
if gproject
|
||||||
copy_project(@project, gproject)
|
copy_project(@project, gproject)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue