diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 13:18:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-20 13:18:24 +0000 |
commit | 0653e08efd039a5905f3fa4f6e9cef9f5d2f799c (patch) | |
tree | 4dcc884cf6d81db44adae4aa99f8ec1233a41f55 /lib/api/feature_flags.rb | |
parent | 744144d28e3e7fddc117924fef88de5d9674fe4c (diff) | |
download | gitlab-ce-47839f859fe0a95188a31acdfbc5c09d2b983af8.tar.gz |
Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42
Diffstat (limited to 'lib/api/feature_flags.rb')
-rw-r--r-- | lib/api/feature_flags.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |