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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-24 12:39:16 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 00:31:49 +0400
commitca105d0462090b1650019890feeeef3fdd356209 (patch)
tree5e8d50512b51928173113e2d4cb9ecff5df71140 /app
parent645f9604752ae258ab3f125c8fa98adf3b81c127 (diff)
Show only teams we have access to
Diffstat (limited to 'app')
-rw-r--r--app/controllers/teams_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb
index ea060b3a44d..7de094214d4 100644
--- a/app/controllers/teams_controller.rb
+++ b/app/controllers/teams_controller.rb
@@ -10,7 +10,7 @@ class TeamsController < ApplicationController
layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search]
def index
- @teams = UserTeam.order('name ASC')
+ @teams = current_user.user_teams.order('name ASC')
end
def show