diff --git a/rhodecode/templates/data_table/_dt_elements.mako b/rhodecode/templates/data_table/_dt_elements.mako --- a/rhodecode/templates/data_table/_dt_elements.mako +++ b/rhodecode/templates/data_table/_dt_elements.mako @@ -391,12 +391,14 @@ ##
## ${_('Edit')} ##
-
+% if h.HasRepoPermissionAny('repository.admin')(c.repo_name): +
${h.secure_form(h.route_path('repo_artifacts_delete', repo_name=repo_name, uid=file_store_id), request=request)} ${h.submit('remove_',_('Delete'),id="remove_artifact_%s" % file_store_id, class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this artifact: %s') % file_uid+"');")} ${h.end_form()}
+% endif <%def name="markup_form(form_id, form_text='', help_text=None)">