Fix project adding to team

This commit is contained in:
Dmitriy Zaporozhets 2013-01-25 13:56:04 +02:00
parent 2812e6f1f5
commit 5aca1d64e0
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Teams::ProjectsController < Teams::ApplicationController
# Reject non-allowed projects
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
user_team.assign_to_projects(project_ids, access)