Commit 7384541b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment