Commit 6f59aa43 authored by Nathan Friend's avatar Nathan Friend

Update :release_edit_page to default to on

This commit makes the release edit page enabled by default.
parent fb72ef07
...@@ -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