Commit 40952ad9 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ff/import-requirements' into 'master'

Default enable import_requirements_csv feature flag

See merge request gitlab-org/gitlab!50138
parents eaa75548 973c2a79
......@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/284846
milestone: '13.7'
type: development
group: group::product planning
default_enabled: false
default_enabled: true
......@@ -8,7 +8,7 @@ class Projects::RequirementsManagement::RequirementsController < Projects::Appli
before_action :authorize_read_requirement!
before_action :authorize_import_access!, only: [:import_csv, :authorize]
before_action do
push_frontend_feature_flag(:import_requirements_csv, project)
push_frontend_feature_flag(:import_requirements_csv, project, default_enabled: true)
end
feature_category :requirements_management
......@@ -37,7 +37,7 @@ class Projects::RequirementsManagement::RequirementsController < Projects::Appli
private
def authorize_import_access!
render_404 unless Feature.enabled?(:import_requirements_csv, project, default_enabled: false)
render_404 unless Feature.enabled?(:import_requirements_csv, project, default_enabled: true)
return if can?(current_user, :import_requirements, project)
......
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