X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDO.pm;h=ebc60515978d526100e106d47b509f544ef8dc49;hb=7718459cd0be728a57d7ca75dd8077316df7d730;hp=ac3f34bd93c2ba4f05751f90b7491b14890e51e4;hpb=2065624062cd59d7d21a6e1f39ae433a9668301e;p=kivitendo-erp.git diff --git a/SL/DO.pm b/SL/DO.pm index ac3f34bd9..ebc605159 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -134,7 +134,8 @@ sub transactions { push @where, "dord.$item = ?"; push @values, conv_i($form->{$item}); } - if ( !(($vc eq 'customer' && $main::auth->assert('sales_all_edit', 1)) || ($vc eq 'vendor' && $main::auth->assert('purchase_all_edit', 1))) ) { + if ( !( ($vc eq 'customer' && ($main::auth->assert('sales_all_edit', 1) || $main::auth->assert('sales_delivery_order_view', 1))) + || ($vc eq 'vendor' && ($main::auth->assert('purchase_all_edit', 1) || $main::auth->assert('purchase_delivery_order_view', 1))) ) ) { push @where, qq|dord.employee_id = (select id from employee where login= ?)|; push @values, $::myconfig{login}; }