Commit 5aca1d64e0b8ca2c58c961eb9e04e5d8629ed8ab
1 parent
2812e6f1
Exists in
master
and in
4 other branches
Fix project adding to team
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/teams/projects_controller.rb
... | ... | @@ -23,7 +23,7 @@ class Teams::ProjectsController < Teams::ApplicationController |
23 | 23 | |
24 | 24 | # Reject non-allowed projects |
25 | 25 | allowed_project_ids = current_user.owned_projects.map(&:id) |
26 | - project_ids.select! { |id| allowed_project_ids.include?(id) } | |
26 | + project_ids.select! { |id| allowed_project_ids.include?(id.to_i) } | |
27 | 27 | |
28 | 28 | # Assign projects to team |
29 | 29 | user_team.assign_to_projects(project_ids, access) | ... | ... |