From 4ad958b9d27be5cd82ae9c5c9a09ffc809ddd5d9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 21 Nov 2018 23:03:07 -0600 Subject: [PATCH] Fix bug in receiving template when truck dump not enabled --- tailbone/templates/receiving/view.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/receiving/view.mako b/tailbone/templates/receiving/view.mako index 95750bda..2204cd77 100644 --- a/tailbone/templates/receiving/view.mako +++ b/tailbone/templates/receiving/view.mako @@ -56,7 +56,7 @@ ${parent.body()} -% if request.has_perm('{}.edit_row'.format(permission_prefix)): +% if master.allow_truck_dump and request.has_perm('{}.edit_row'.format(permission_prefix)): ${h.form(url('{}.transform_unit_row'.format(route_prefix), uuid=batch.uuid), name='transform-unit-form')} ${h.csrf_token(request)} ${h.hidden('row_uuid')}