summaryrefslogtreecommitdiff
path: root/lib/api/debian_group_packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/debian_group_packages.rb')
-rw-r--r--lib/api/debian_group_packages.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/debian_group_packages.rb b/lib/api/debian_group_packages.rb
index e3cacc4132f..f138f400601 100644
--- a/lib/api/debian_group_packages.rb
+++ b/lib/api/debian_group_packages.rb
@@ -8,12 +8,14 @@ module API
resource :groups, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do
before do
+ require_packages_enabled!
+
not_found! unless ::Feature.enabled?(:debian_packages, user_group)
authorize_read_package!(user_group)
end
- namespace ':id/-/packages/debian' do
+ namespace ':id/packages/debian' do
include DebianPackageEndpoints
end
end