From 0653e08efd039a5905f3fa4f6e9cef9f5d2f799c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 20 Sep 2021 13:18:24 +0000 Subject: Add latest changes from gitlab-org/gitlab@14-3-stable-ee --- lib/api/feature_flags.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/api/feature_flags.rb') diff --git a/lib/api/feature_flags.rb b/lib/api/feature_flags.rb index fb5858bc10b..c1f958ac007 100644 --- a/lib/api/feature_flags.rb +++ b/lib/api/feature_flags.rb @@ -118,7 +118,7 @@ module API put do authorize_update_feature_flag! exclude_legacy_flags_check! - render_api_error!('PUT operations are not supported for legacy feature flags', :unprocessable_entity) if feature_flag.legacy_flag? + render_api_error!('PUT operations are not supported for legacy feature flags', :unprocessable_entity) unless feature_flag.new_version_flag? attrs = declared_params(include_missing: false) @@ -207,7 +207,7 @@ module API end def exclude_legacy_flags_check! - if feature_flag.legacy_flag? + unless feature_flag.new_version_flag? not_found! end end -- cgit v1.2.1