Show only teams we have access to

This commit is contained in:
Dmitriy Zaporozhets 2013-01-24 10:39:16 +02:00
parent 645f960475
commit ca105d0462

View file

@ -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