Free assets: Assets should not be advertised as free if the user is a logged in subscriber.

This commit is contained in:
2018-10-04 17:44:08 +02:00
parent 670c600382
commit d2815acd80
2 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,8 @@ script(src="{{ url_for('static_cloud', filename='assets/js/tagged_assets.min.js'
script.
$(function() {
$('.js-asset-list').loadTaggedAssets(8, 8);
let is_subscriber = {{ current_user.has_cap('subscriber')|string|lower }};
$('.js-asset-list').loadTaggedAssets(8, 8, is_subscriber);
});
| {% endblock %}
| {% block body %}