debian-mirror-gitlab/app/controllers/groups/settings/packages_and_registries_controller.rb

23 lines
463 B
Ruby
Raw Normal View History

2021-03-08 18:12:59 +05:30
# frozen_string_literal: true
module Groups
module Settings
class PackagesAndRegistriesController < Groups::ApplicationController
2021-04-29 21:17:54 +05:30
layout 'group_settings'
2021-03-08 18:12:59 +05:30
before_action :authorize_admin_group!
2021-03-11 19:13:27 +05:30
before_action :verify_packages_enabled!
2021-03-08 18:12:59 +05:30
feature_category :package_registry
def index
end
2021-03-11 19:13:27 +05:30
private
def verify_packages_enabled!
render_404 unless group.packages_feature_enabled?
end
2021-03-08 18:12:59 +05:30
end
end
end