Put watermark code behind a feature flag

This commit is contained in:
Paul Chavard 2020-11-24 14:10:33 +01:00
parent 371179dc5b
commit b48e7813d2
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ module BlobTitreIdentiteWatermarkConcern
end
def enqueue_watermark_job
if titre_identite? && !watermarked? && analyzed? && virus_scanner.done?
if titre_identite? && !watermarked? && analyzed? && virus_scanner.done? && Flipper.enabled?(:titre_identite_watermark)
TitreIdentiteWatermarkJob.perform_later(self)
end
end

View file

@ -32,7 +32,8 @@ features = [
:mini_profiler,
:xray,
:carte_ign,
:localization
:localization,
:titre_identite_watermark
]
def database_exists?