From 386571157ab7b275a4bd66f36a1737c5db2b35a2 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 20 Sep 2017 14:23:21 +0200 Subject: [PATCH] Assets: Check if user is subscriber or asset is public --- src/templates/nodes/custom/_node_details.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/nodes/custom/_node_details.pug b/src/templates/nodes/custom/_node_details.pug index a1628382..ec5d43e2 100644 --- a/src/templates/nodes/custom/_node_details.pug +++ b/src/templates/nodes/custom/_node_details.pug @@ -36,7 +36,7 @@ span Public | {% endif %} - | {% if node.file and current_user.has_cap('subscriber') %} + | {% if node.file and (current_user.has_cap('subscriber') or node.permissions.world) %} li.download | {% if node.properties.content_type == 'video' %} | {% if node.file_variations %}