Commit f3cfb8a0 authored by David Fernandez's avatar David Fernandez

Set feature flag enabled by default

For the `forward_npm_package_registry_requests` feature flag
parent 00d4d5be
- if Feature.enabled?(:forward_npm_package_registry_requests) && Gitlab.config.packages.enabled
- if Feature.enabled?(:forward_npm_package_registry_requests, default_enabled: true) && Gitlab.config.packages.enabled
%section.settings.as-package.no-animate#js-package-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
......
---
title: Add NPM package requests forwarding to npmjs.org
merge_request: 26932
author:
type: added
......@@ -28,7 +28,7 @@ module API
end
def redirect_registry_request_available?
Feature.enabled?(:forward_npm_package_registry_requests) &&
Feature.enabled?(:forward_npm_package_registry_requests, default_enabled: true) &&
::Gitlab::CurrentSettings.current_application_settings.npm_package_requests_forwarding
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment