Do not allow downloads of mutable databases - closes #474

This commit is contained in:
Simon Willison 2019-05-19 13:41:09 -07:00
commit f4eefdf193
4 changed files with 35 additions and 25 deletions

View file

@ -56,7 +56,7 @@
</ul>
{% endif %}
{% if config.allow_download and database != ":memory:" %}
{% if allow_download %}
<p class="download-sqlite">Download SQLite DB: <a href="{{ database_url(database) }}.db">{{ database }}.db</a> <em>{{ format_bytes(size) }}</em></p>
{% endif %}