Put watermark code behind a feature flag
This commit is contained in:
parent
371179dc5b
commit
b48e7813d2
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -32,7 +32,8 @@ features = [
|
|||
:mini_profiler,
|
||||
:xray,
|
||||
:carte_ign,
|
||||
:localization
|
||||
:localization,
|
||||
:titre_identite_watermark
|
||||
]
|
||||
|
||||
def database_exists?
|
||||
|
|
Loading…
Reference in a new issue