From: Bernd Bleßmann Date: Tue, 8 Mar 2022 16:12:42 +0000 (+0100) Subject: Anbebots-/Auftragsbericht: Recht "Ansehen von Belegen" berücksichtigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~147^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ab0103527f959128c88217c9b1c96dd873e597eb;p=kivitendo-erp.git Anbebots-/Auftragsbericht: Recht "Ansehen von Belegen" berücksichtigen --- 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}; }