debian-mirror-gitlab/app/controllers/groups/packages_controller.rb

22 lines
454 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
module Groups
class PackagesController < Groups::ApplicationController
before_action :verify_packages_enabled!
2021-01-03 14:25:43 +05:30
feature_category :package_registry
2022-07-16 23:28:13 +05:30
urgency :low
2021-01-03 14:25:43 +05:30
2022-03-02 08:16:31 +05:30
# The show action renders index to allow frontend routing to work on page refresh
def show
render :index
end
2020-10-24 23:57:45 +05:30
private
def verify_packages_enabled!
render_404 unless group.packages_feature_enabled?
end
end
end