Skip to content
代码片段 群组 项目
提交 5c69f929 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

fix issue with first key add to new repo

上级 c78ce746
No related branches found
No related tags found
无相关合并请求
......@@ -31,6 +31,10 @@ def create
Project.transaction do
@project.save!
@project.users_projects.create!(:admin => true, :read => true, :write => true, :user => current_user)
# when project saved no team member exist so
# project repository should be updated after first user add
@project.update_repository
end
respond_to do |format|
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册