Fix some permission bugs when showing batch tools etc.

This commit is contained in:
Lance Edgar 2021-02-09 12:19:26 -06:00
parent 85403dfa5e
commit cc2308c399
2 changed files with 7 additions and 2 deletions

View file

@ -150,7 +150,7 @@
<%def name="modify_this_page_vars()"> <%def name="modify_this_page_vars()">
${parent.modify_this_page_vars()} ${parent.modify_this_page_vars()}
% if master.results_executable and master.has_perm('execute_multiple'): % if master.results_refreshable and master.has_perm('refresh'):
<script type="text/javascript"> <script type="text/javascript">
TailboneGridData.refreshResultsButtonText = "Refresh Results" TailboneGridData.refreshResultsButtonText = "Refresh Results"
@ -162,6 +162,11 @@
this.$refs.refreshResultsForm.submit() this.$refs.refreshResultsForm.submit()
} }
</script>
% endif
% if master.results_executable and master.has_perm('execute_multiple'):
<script type="text/javascript">
${execute_form.component_studly}.methods.submit = function() { ${execute_form.component_studly}.methods.submit = function() {
this.$refs.actualExecuteForm.submit() this.$refs.actualExecuteForm.submit()
} }

View file

@ -316,7 +316,7 @@
% endif % endif
## download rows for search results ## download rows for search results
% if master.has_rows and master.results_rows_downloadable: % if master.has_rows and master.results_rows_downloadable and master.has_perm('download_results_rows'):
% if use_buefy: % if use_buefy:
<b-button type="is-primary" <b-button type="is-primary"
icon-pack="fas" icon-pack="fas"