提交 7384541b 编写于 作者: D Dmitriy Zaporozhets

Do not create a User <-> Project relation if project is under group

上级 e8e9e0f7
......@@ -58,7 +58,7 @@ module Projects
end
end
if @project.save
if @project.save && !@project.group
@project.users_projects.create(project_access: UsersProject::MASTER, user: current_user)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册