X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9bd3030a376850c427c102c6e0c54f19bd19332e..b68c23bf6e98cf678081dcaa84a8593b10aaff29:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index b1e1f9f30..6cc4a5004 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -122,6 +122,10 @@ SQL push(@values, '%' . $form->{$vc} . '%'); } + if (!$main::auth->assert('sales_all_edit', 1)) { + $query .= " AND o.employee_id = (select id from employee where login= ?)"; + push @values, $form->{login}; + } if ($form->{employee_id}) { $query .= " AND o.employee_id = ?"; push @values, conv_i($form->{employee_id});