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