Commit b542296c authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets

Merge branch 'check-flag-for-occurrence-state' into 'master'

Check feature flag when deciding occurrence state

See merge request gitlab-org/gitlab!22791
parents 80a7d7e8 ea3748fc
...@@ -136,6 +136,7 @@ module Vulnerabilities ...@@ -136,6 +136,7 @@ module Vulnerabilities
def state def state
return 'dismissed' if dismissal_feedback.present? return 'dismissed' if dismissal_feedback.present?
return 'opened' unless Feature.enabled?(:first_class_vulnerabilities, project)
if vulnerability.nil? if vulnerability.nil?
'opened' 'opened'
......
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