Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2013-01-24 22:19:18 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 00:31:49 +0400
commite52fec9cd9812e6fd8a7700c2188dbbf6e022c81 (patch)
tree33aecd2938ebd3364a9ae51a5057fec2ac00a237 /app
parent6d713e84e185f60b00c38e792d11df27ed110605 (diff)
Update check If user can assign project to team
Diffstat (limited to 'app')
-rw-r--r--app/controllers/teams/projects_controller.rb2
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