Commit 5aca1d64 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project adding to team

parent 2812e6f1
...@@ -23,7 +23,7 @@ class Teams::ProjectsController < Teams::ApplicationController ...@@ -23,7 +23,7 @@ class Teams::ProjectsController < Teams::ApplicationController
# Reject non-allowed projects # Reject non-allowed projects
allowed_project_ids = current_user.owned_projects.map(&:id) allowed_project_ids = current_user.owned_projects.map(&:id)
project_ids.select! { |id| allowed_project_ids.include?(id) } project_ids.select! { |id| allowed_project_ids.include?(id.to_i) }
# Assign projects to team # Assign projects to team
user_team.assign_to_projects(project_ids, access) user_team.assign_to_projects(project_ids, access)
......
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