Add whitelisting for documents

This commit is contained in:
Patrick Gansterer 2017-10-11 02:39:35 +02:00
parent 957b347b04
commit 8a9d7a91c9
5 changed files with 22 additions and 2 deletions

View file

@ -11,5 +11,9 @@ module FoodsoftDocuments
sub_nav.items.insert(i, sub_nav.items.delete_at(-1))
end
end
def default_foodsoft_config(cfg)
cfg[:documents_allowed_extension] = 'gif jpg png txt'
end
end
end