X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAP.pm;h=9215ab710d47797979051f35d053dda893353726;hb=2766521474b20c77e62d169a1c99efb41cb1c56f;hp=bcd6d83cb5d3c5d9253f070cbd199b9d24246c89;hpb=b623ece7b8ba928117bc2280d64d3ef8cbed2e48;p=kivitendo-erp.git 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 };