gitlabhq/app/controllers/projects/application_controller.rb

12 lines
199 B
Ruby
Raw Normal View History

class Projects::ApplicationController < ApplicationController
before_filter :authorize_admin_team_member!
protected
def user_team
@team ||= UserTeam.find_by_path(params[:id])
end
end