Don't show CSV download link if master view opts out

This commit is contained in:
Lance Edgar 2016-08-26 15:41:22 -05:00
parent 60c5d31aa1
commit bb6a838d3b

View file

@ -19,7 +19,7 @@
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('{}.csv'.format(permission_prefix)):
% if master.rows_downloadable and request.has_perm('{}.csv'.format(permission_prefix)):
<li>${h.link_to("Download row data as CSV", url('{}.csv'.format(route_prefix), uuid=batch.uuid))}</li>
% endif
</%def>