gitlab-org--gitlab-foss/app/controllers/groups/packages_controller.rb

14 lines
269 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Groups
class PackagesController < Groups::ApplicationController
before_action :verify_packages_enabled!
private
def verify_packages_enabled!
render_404 unless group.packages_feature_enabled?
end
end
end