X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e8d91442a904758a2c15d5d22a05790fac120d23..cac2ae9bcd47fc55d35c37e25dbb03cd6ac6edeb:/SL/AP.pm?ds=inline diff --git a/SL/AP.pm b/SL/AP.pm index bcd6d83cb..9215ab710 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -492,7 +492,7 @@ sub ap_transactions { my $where = ''; - unless ( $main::auth->check_right($form->{login}, 'show_ap_transactions') ) { + unless ( $::auth->assert('show_ap_transactions', 1) ) { $where .= " AND NOT invoice = 'f' "; # remove ap transactions from Sales -> Reports -> Invoices };