Skip to content

Commit ca105d0

Browse files
committed
Show only teams we have access to
1 parent 645f960 commit ca105d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/teams_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TeamsController < ApplicationController
1010
layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search]
1111

1212
def index
13-
@teams = UserTeam.order('name ASC')
13+
@teams = current_user.user_teams.order('name ASC')
1414
end
1515

1616
def show

0 commit comments

Comments
 (0)