Commit 7384541b345169a829c4c9f2b63bf71fd223d9b9

Authored by Dmitriy Zaporozhets
1 parent e8e9e0f7

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

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/contexts/projects/create_context.rb
... ... @@ -58,7 +58,7 @@ module Projects
58 58 end
59 59 end
60 60  
61   - if @project.save
  61 + if @project.save && !@project.group
62 62 @project.users_projects.create(project_access: UsersProject::MASTER, user: current_user)
63 63 end
64 64  
... ...