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

@ -1,2 +1,3 @@
/ insert_before ':root:first-child'
= config_input form, :use_documents, as: :boolean
/ insert_after ':root:last-child'
= config_use_heading form, :use_documents do
= config_input form, :documents_allowed_extension, as: :string, input_html: {class: 'input-xlarge'}