debian-mirror-gitlab/app/controllers/groups/settings/packages_and_registries_controller.rb
2021-04-29 21:17:54 +05:30

22 lines
463 B
Ruby

# frozen_string_literal: true
module Groups
module Settings
class PackagesAndRegistriesController < Groups::ApplicationController
layout 'group_settings'
before_action :authorize_admin_group!
before_action :verify_packages_enabled!
feature_category :package_registry
def index
end
private
def verify_packages_enabled!
render_404 unless group.packages_feature_enabled?
end
end
end
end