BigW Consortium Gitlab

Commit ca105d04 by Dmitriy Zaporozhets

Show only teams we have access to

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