gitlabhq/app/controllers/teams/application_controller.rb
2013-01-24 22:31:25 +02:00

12 lines
200 B
Ruby

class Teams::ApplicationController < ApplicationController
before_filter :authorize_manage_user_team!
protected
def user_team
@team ||= UserTeam.find_by_path(params[:team_id])
end
end