diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-24 22:19:18 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:49 +0400 |
commit | e52fec9cd9812e6fd8a7700c2188dbbf6e022c81 (patch) | |
tree | 33aecd2938ebd3364a9ae51a5057fec2ac00a237 /app | |
parent | 6d713e84e185f60b00c38e792d11df27ed110605 (diff) |
Update check If user can assign project to team
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/teams/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/teams/projects_controller.rb b/app/controllers/teams/projects_controller.rb index f5729351508..27dc934452f 100644 --- a/app/controllers/teams/projects_controller.rb +++ b/app/controllers/teams/projects_controller.rb @@ -4,7 +4,7 @@ class Teams::ProjectsController < Teams::ApplicationController def index @projects = user_team.projects - @avaliable_projects = current_user.admin? ? Project.without_team(user_team) : (Project.personal(current_user) + current_user.projects).uniq + @avaliable_projects = current_user.admin? ? Project.without_team(user_team) : current_user.owned_projects.without_team(user_team) end def new |