New feature : User, Guest and Gestionnaire can be upload a document with theirs comments
This commit is contained in:
parent
fb2eeddf97
commit
b15c2bbb2b
19 changed files with 214 additions and 59 deletions
|
@ -1,6 +1,10 @@
|
|||
class ClamavService
|
||||
def self.safe_file? path_file
|
||||
|
||||
if Rails.env == 'development'
|
||||
return CLAMAV[:response] if CLAMAV[:mock?]
|
||||
end
|
||||
|
||||
FileUtils.chmod 0666, path_file
|
||||
|
||||
client = ClamAV::Client.new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue