Commit ca105d04 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show only teams we have access to

parent 645f9604
...@@ -10,7 +10,7 @@ class TeamsController < ApplicationController ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment