|
@@ -97,7 +97,8 @@ def import_button(url):
|
|
|
@register.inclusion_tag('buttons/export.html', takes_context=True)
|
|
@register.inclusion_tag('buttons/export.html', takes_context=True)
|
|
|
def export_button(context, content_type=None):
|
|
def export_button(context, content_type=None):
|
|
|
if content_type is not None:
|
|
if content_type is not None:
|
|
|
- export_templates = ExportTemplate.objects.filter(content_type=content_type)
|
|
|
|
|
|
|
+ user = context['request'].user
|
|
|
|
|
+ export_templates = ExportTemplate.objects.restrict(user, 'view').filter(content_type=content_type)
|
|
|
else:
|
|
else:
|
|
|
export_templates = []
|
|
export_templates = []
|
|
|
|
|
|