diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-24 12:39:16 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:49 +0400 |
commit | ca105d0462090b1650019890feeeef3fdd356209 (patch) | |
tree | 5e8d50512b51928173113e2d4cb9ecff5df71140 /app | |
parent | 645f9604752ae258ab3f125c8fa98adf3b81c127 (diff) |
Show only teams we have access to
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/teams_controller.rb | 2 |
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 |