Skip to content

Commit b7cc560

Browse files
committed
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.
1 parent 8ff61fc commit b7cc560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/base/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ def addon_view_file(auth, node, file_node, version):
732732
'direct': None,
733733
'mode': 'render',
734734
'action': 'download',
735+
'public_file': node.is_public,
735736
})
736737
)
737738

0 commit comments

Comments
 (0)