Assets: Check if user is subscriber or asset is public
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
span Public
|
span Public
|
||||||
| {% endif %}
|
| {% 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
|
li.download
|
||||||
| {% if node.properties.content_type == 'video' %}
|
| {% if node.properties.content_type == 'video' %}
|
||||||
| {% if node.file_variations %}
|
| {% if node.file_variations %}
|
||||||
|
Reference in New Issue
Block a user