Commit 6c22e997 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rename clair feature to sast_image

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f4e91ecd
......@@ -55,8 +55,8 @@ class License < ActiveRecord::Base
EEU_FEATURES = EEP_FEATURES + %i[
sast
sast_image
epics
clair
].freeze
# List all features available for early adopters,
......
......@@ -78,7 +78,7 @@ module EE
end
def expose_clair_data?(mr, current_user)
mr.project.feature_available?(:clair) &&
mr.project.feature_available?(:sast_image) &&
mr.has_clair_data? &&
can?(current_user, :read_build, mr.clair_artifact)
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