only show receive in finance when access to ordering

This commit is contained in:
wvengen 2013-12-18 22:19:36 +01:00
parent 7f813f2c0f
commit 3d511ea2fb

View file

@ -19,7 +19,8 @@
%td= show_user(order.updated_by)
%td
- unless order.closed?
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
- if current_user.role_orders?
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
= link_to t('.clear'), new_finance_order_path(order_id: order.id), class: 'btn btn-mini btn-primary'
= link_to t('.close'), close_direct_finance_order_path(order),
:confirm => t('.confirm'), :method => :put, class: 'btn btn-mini'