Fix some bugs etc. with batch views and templates

This commit is contained in:
Lance Edgar 2016-11-20 14:10:04 -06:00
parent f97b26506f
commit 37be76cc84
3 changed files with 16 additions and 9 deletions

View file

@ -46,7 +46,7 @@
<%def name="leading_buttons()"></%def>
<%def name="refresh_button()">
% if master.viewing and master.batch_refreshable(batch):
% if master.viewing and master.batch_refreshable(batch) and request.has_perm('{}.refresh'.format(permission_prefix)):
<button type="button" id="refresh-data">Refresh data</button>
% endif
</%def>