X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAR.pm;h=adffeb6bc677cb7d132919789c3348965c559196;hb=eed2ea364f31c49d86ee4570759a987dc242483f;hp=d97c443d17dd9c0a6d934189cd2d14365123fa7d;hpb=e8d91442a904758a2c15d5d22a05790fac120d23;p=kivitendo-erp.git diff --git a/SL/AR.pm b/SL/AR.pm index d97c443d1..adffeb6bc 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -516,7 +516,7 @@ sub ar_transactions { my $where = "1 = 1"; - unless ( $main::auth->check_right($form->{login}, 'show_ar_transactions') ) { + unless ( $::auth->assert('show_ar_transactions', 1) ) { $where .= " AND NOT invoice = 'f' "; # remove ar transactions from Sales -> Reports -> Invoices };