Commit ca105d0462090b1650019890feeeef3fdd356209
1 parent
645f9604
Exists in
master
and in
4 other branches
Show only teams we have access to
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/teams_controller.rb
... | ... | @@ -10,7 +10,7 @@ class TeamsController < ApplicationController |
10 | 10 | layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search] |
11 | 11 | |
12 | 12 | def index |
13 | - @teams = UserTeam.order('name ASC') | |
13 | + @teams = current_user.user_teams.order('name ASC') | |
14 | 14 | end |
15 | 15 | |
16 | 16 | def show | ... | ... |