X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDO.pm;h=ecaee496d85f1618bcfc76b6fc4ac3cc28033a8a;hb=14d905e5a6bdc95c13bf7575deb5f79f6e34fb2c;hp=54df47ca70d7ddb3c34c6a0317b9e039220d8f62;hpb=6bab0fff323c36de9e247487f043da1b29dea6fd;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}; }