summaryrefslogtreecommitdiff
path: root/app/controllers/groups/packages_controller.rb
blob: 600acc72e6706a39039641fa64037eb65eefc871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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