Commit e52fec9cd9812e6fd8a7700c2188dbbf6e022c81

Authored by Andrey Kumanyaev
Committed by Dmitriy Zaporozhets
1 parent 6d713e84

Update check If user can assign project to team

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/teams/projects_controller.rb
... ... @@ -4,7 +4,7 @@ class Teams::ProjectsController < Teams::ApplicationController
4 4  
5 5 def index
6 6 @projects = user_team.projects
7   - @avaliable_projects = current_user.admin? ? Project.without_team(user_team) : (Project.personal(current_user) + current_user.projects).uniq
  7 + @avaliable_projects = current_user.admin? ? Project.without_team(user_team) : current_user.owned_projects.without_team(user_team)
8 8 end
9 9  
10 10 def new
... ...