X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDO.pm;h=ecaee496d85f1618bcfc76b6fc4ac3cc28033a8a;hb=5bbb2def9ab6c1055f36d3aa75a060a2de9905e7;hp=54df47ca70d7ddb3c34c6a0317b9e039220d8f62;hpb=65b2387a54494a8cbc1d011602ae3f8d7208ea4d;p=kivitendo-erp.git diff --git a/SL/DO.pm b/SL/DO.pm index 54df47ca7..ecaee496d 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -129,7 +129,7 @@ sub transactions { push @where, "dord.$item = ?"; push @values, conv_i($form->{$item}); } - if (!$main::auth->assert('sales_all_edit', 1)) { + if ( !(($vc eq 'customer' && $main::auth->assert('sales_all_edit', 1)) || ($vc eq 'vendor' && $main::auth->assert('purchase_all_edit', 1))) ) { push @where, qq|dord.employee_id = (select id from employee where login= ?)|; push @values, $::myconfig{login}; }