Commit 07ef54a8 authored by Tetiana Chupryna's avatar Tetiana Chupryna Committed by Robert Speicher

Revert "Merge branch 'dependency-list-feature-flag-disabled-by-default' into 'master'"

This reverts merge request !14131
parent 23994d21
...@@ -5,8 +5,7 @@ module Projects ...@@ -5,8 +5,7 @@ module Projects
before_action :check_feature_enabled! before_action :check_feature_enabled!
def check_feature_enabled! def check_feature_enabled!
render_404 unless ::Feature.enabled?(:dependency_list) && render_404 unless project.feature_available?(:dependency_list)
project.feature_available?(:dependency_list)
end end
end end
end end
...@@ -32,8 +32,7 @@ module Projects ...@@ -32,8 +32,7 @@ module Projects
end end
def ensure_dependency_list_feature_available def ensure_dependency_list_feature_available
render_404 unless ::Feature.enabled?(:dependency_list) && render_404 unless project.feature_available?(:dependency_list)
project.feature_available?(:dependency_list)
end end
def dependencies def dependencies
......
...@@ -81,7 +81,7 @@ module EE ...@@ -81,7 +81,7 @@ module EE
end end
def collect_dependency_list_reports!(dependency_list_report) def collect_dependency_list_reports!(dependency_list_report)
if ::Feature.enabled?(:dependency_list) && project.feature_available?(:dependency_list) if project.feature_available?(:dependency_list)
dependency_list = ::Gitlab::Ci::Parsers::Security::DependencyList.new(project, sha) dependency_list = ::Gitlab::Ci::Parsers::Security::DependencyList.new(project, sha)
each_report(::Ci::JobArtifact::DEPENDENCY_LIST_REPORT_FILE_TYPES) do |file_type, blob| each_report(::Ci::JobArtifact::DEPENDENCY_LIST_REPORT_FILE_TYPES) do |file_type, blob|
......
- if ::Feature.enabled?(:dependency_list) && @project.feature_available?(:dependency_list) - if @project.feature_available?(:dependency_list)
= nav_link(path: 'projects/dependencies#show') do = nav_link(path: 'projects/dependencies#show') do
= link_to project_dependencies_path(@project), title: _('Dependency List'), class: 'shortcuts-project-dependencies' do = link_to project_dependencies_path(@project), title: _('Dependency List'), class: 'shortcuts-project-dependencies' do
%span= _('Dependency List') %span= _('Dependency List')
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