Commit 7384541b345169a829c4c9f2b63bf71fd223d9b9
1 parent
e8e9e0f7
Exists in
master
and in
4 other branches
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,7 +58,7 @@ module Projects | ||
| 58 | end | 58 | end |
| 59 | end | 59 | end |
| 60 | 60 | ||
| 61 | - if @project.save | 61 | + if @project.save && !@project.group |
| 62 | @project.users_projects.create(project_access: UsersProject::MASTER, user: current_user) | 62 | @project.users_projects.create(project_access: UsersProject::MASTER, user: current_user) |
| 63 | end | 63 | end |
| 64 | 64 |