diff --git a/admin/themes/default/template/controllers/orders/_booking_document_line.tpl b/admin/themes/default/template/controllers/orders/_booking_document_line.tpl index 9411ae1b8..77badd8ff 100644 --- a/admin/themes/default/template/controllers/orders/_booking_document_line.tpl +++ b/admin/themes/default/template/controllers/orders/_booking_document_line.tpl @@ -35,9 +35,11 @@ - - - + {if $can_edit} + + + + {/if} {/foreach} diff --git a/admin/themes/default/template/controllers/orders/_documents.tpl b/admin/themes/default/template/controllers/orders/_documents.tpl index a47bc8a5a..25ad36aef 100644 --- a/admin/themes/default/template/controllers/orders/_documents.tpl +++ b/admin/themes/default/template/controllers/orders/_documents.tpl @@ -95,7 +95,7 @@ {l s='Edit note'} {/if} - {if $document->getRestPaid()} + {if $can_edit && $document->getRestPaid()} {l s='Enter payment'} @@ -117,7 +117,7 @@ - {if !$orderDocuments|count && isset($invoice_management_active) && $invoice_management_active} + {if $can_edit && !$orderDocuments|count && isset($invoice_management_active) && $invoice_management_active}
{* If current state is refunded or cancelled the further order status changes are not allowed *} - {if !isset($currentState) || (isset($currentState) && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED')))} + {if $can_edit && (!isset($currentState) || (isset($currentState) && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))))}