From b7cc560c56dd97b1c542490a6bd8b24ad76f6ae7 Mon Sep 17 00:00:00 2001 From: longze chen Date: Thu, 7 Dec 2017 11:34:47 -0500 Subject: [PATCH] Expose whether a file is public to WB via download_url in `addon_view_file()`, which is called by `addon_view_or_download_file()`. The `is_public` comes from the node to which the file belongs. --- addons/base/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/base/views.py b/addons/base/views.py index 5665ae89c88..81880ab0a07 100644 --- a/addons/base/views.py +++ b/addons/base/views.py @@ -732,6 +732,7 @@ def addon_view_file(auth, node, file_node, version): 'direct': None, 'mode': 'render', 'action': 'download', + 'public_file': node.is_public, }) )