diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 16:18:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 16:18:24 +0300 |
commit | 0653e08efd039a5905f3fa4f6e9cef9f5d2f799c (patch) | |
tree | 4dcc884cf6d81db44adae4aa99f8ec1233a41f55 /app/controllers/projects/feature_flags_controller.rb | |
parent | 744144d28e3e7fddc117924fef88de5d9674fe4c (diff) |
Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42
Diffstat (limited to 'app/controllers/projects/feature_flags_controller.rb')
-rw-r--r-- | app/controllers/projects/feature_flags_controller.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/controllers/projects/feature_flags_controller.rb b/app/controllers/projects/feature_flags_controller.rb index b99c233411a..7c0da8f8a24 100644 --- a/app/controllers/projects/feature_flags_controller.rb +++ b/app/controllers/projects/feature_flags_controller.rb @@ -10,9 +10,6 @@ class Projects::FeatureFlagsController < Projects::ApplicationController before_action :feature_flag, only: [:edit, :update, :destroy] - before_action :ensure_flag_writable!, only: [:update] - before_action :exclude_legacy_flags_check, only: [:edit] - feature_category :feature_flags def index @@ -98,18 +95,6 @@ class Projects::FeatureFlagsController < Projects::ApplicationController @feature_flag ||= @noteable = project.operations_feature_flags.find_by_iid!(params[:iid]) end - def ensure_flag_writable! - if feature_flag.legacy_flag? - render_error_json(['Legacy feature flags are read-only']) - end - end - - def exclude_legacy_flags_check - if feature_flag.legacy_flag? - not_found - end - end - def create_params params.require(:operations_feature_flag) .permit(:name, :description, :active, :version, |