Show only teams we have access to
This commit is contained in:
parent
645f960475
commit
ca105d0462
|
@ -10,7 +10,7 @@ class TeamsController < ApplicationController
|
||||||
layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search]
|
layout 'user_team', only: [:show, :edit, :update, :destroy, :issues, :merge_requests, :search]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@teams = UserTeam.order('name ASC')
|
@teams = current_user.user_teams.order('name ASC')
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
Loading…
Reference in a new issue