Commit e3e294f9 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'nfriend-default-release-edit-page-flag-to-on' into 'master'

Update "Edit release" page feature flag to be enabled by default

See merge request gitlab-org/gitlab!20075
parents e668bf8b 6f59aa43
...@@ -6,7 +6,7 @@ class Projects::ReleasesController < Projects::ApplicationController ...@@ -6,7 +6,7 @@ class Projects::ReleasesController < Projects::ApplicationController
before_action :release, only: %i[edit update] before_action :release, only: %i[edit update]
before_action :authorize_read_release! before_action :authorize_read_release!
before_action do before_action do
push_frontend_feature_flag(:release_edit_page, project) push_frontend_feature_flag(:release_edit_page, project, default_enabled: true)
push_frontend_feature_flag(:release_issue_summary, project) push_frontend_feature_flag(:release_issue_summary, project)
end end
before_action :authorize_update_release!, only: %i[edit update] before_action :authorize_update_release!, only: %i[edit update]
...@@ -35,7 +35,7 @@ class Projects::ReleasesController < Projects::ApplicationController ...@@ -35,7 +35,7 @@ class Projects::ReleasesController < Projects::ApplicationController
private private
def authorize_update_release! def authorize_update_release!
access_denied! unless Feature.enabled?(:release_edit_page, project) access_denied! unless Feature.enabled?(:release_edit_page, project, default_enabled: true)
access_denied! unless can?(current_user, :update_release, release) access_denied! unless can?(current_user, :update_release, release)
end end
......
...@@ -52,6 +52,6 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated ...@@ -52,6 +52,6 @@ class ReleasePresenter < Gitlab::View::Presenter::Delegated
end end
def release_edit_page_available? def release_edit_page_available?
::Feature.enabled?(:release_edit_page, project) ::Feature.enabled?(:release_edit_page, project, default_enabled: true)
end end
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