Merge pull request #8380 from mfo/US/PiecesJustificativesService.safe_attachment
fix(PiecesJustificativesService.safe_attachment): utilise la nouvelle API pour comparer le resultat du scan antivirus
This commit is contained in:
commit
3dbfd81d95
1 changed files with 1 additions and 1 deletions
|
@ -255,6 +255,6 @@ class PiecesJustificativesService
|
||||||
def self.safe_attachment(attachment)
|
def self.safe_attachment(attachment)
|
||||||
attachment
|
attachment
|
||||||
.blob
|
.blob
|
||||||
.metadata[:virus_scan_result] == ActiveStorage::VirusScanner::SAFE
|
.virus_scan_result == ActiveStorage::VirusScanner::SAFE
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue