修正接口 项目owner为当前用户,同步gitlab端用户

This commit is contained in:
huang 2015-11-14 15:20:29 +08:00
parent f32cae9012
commit 50dfe5ce8b
1 changed files with 1 additions and 1 deletions

View File

@ -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