Fix permission check for input file template links

This commit is contained in:
Lance Edgar 2021-12-30 11:04:59 -06:00
parent c2d76966a3
commit 7b7eee92cd

View file

@ -165,7 +165,7 @@
% if not use_buefy and master.configurable and master.has_perm('configure'):
<li>${h.link_to("Configure {}".format(config_title), url('{}.configure'.format(route_prefix)))}</li>
% endif
% if master.has_input_file_templates and master.has_perm('download_template'):
% if master.has_input_file_templates and master.has_perm('create'):
% for template in six.itervalues(input_file_templates):
<li>${h.link_to("Download {} Template".format(template['label']), template['effective_url'])}</li>
% endfor