X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e8d91442a904758a2c15d5d22a05790fac120d23..103612f3c8ede917cc8f3ed560e9f23cca31de2d:/SL/AP.pm 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 };