X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FOE.pm;fp=SL%2FOE.pm;h=b273d814a7e79e62fd018055d7ddbce8bc256eb2;hb=ab0103527f959128c88217c9b1c96dd873e597eb;hp=332d6345adf2ed5b69e1d2b24546d02ff8075d9d;hpb=b24afac71c944667fdf55ad734e92b9d9c4ca905;p=kivitendo-erp.git diff --git a/SL/OE.pm b/SL/OE.pm index 332d6345a..b273d814a 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -192,7 +192,8 @@ SQL push(@values, (like($form->{"cp_name"}))x2); } - 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_order_view', 1))) + || ($vc eq 'vendor' && ($main::auth->assert('purchase_all_edit', 1) || $main::auth->assert('purchase_order_view', 1))) ) ) { $query .= " AND o.employee_id = (select id from employee where login= ?)"; push @values, $::myconfig{login}; }