Commit ca105d0462090b1650019890feeeef3fdd356209

Authored by Dmitriy Zaporozhets
1 parent 645f9604

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,7 +10,7 @@ class TeamsController < ApplicationController
10 layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search] 10 layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search]
11 11
12 def index 12 def index
13 - @teams = UserTeam.order('name ASC') 13 + @teams = current_user.user_teams.order('name ASC')
14 end 14 end
15 15
16 def show 16 def show