From 4d59fd5d5211dc8fa2ad3fc611d05c39ef1fca34 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 10 May 2011 16:19:38 +0200 Subject: [PATCH] =?utf8?q?Einkaufsrechnungen:=20Pr=C3=BCfung=20auf=20falsc?= =?utf8?q?hen=20Rechtenamen=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Rechtename für Einkaufsrechnungen ist "vendor_invoice_edit", nicht "invoice_edit". Fix für Bug 1631. --- bin/mozilla/ap.pl | 2 +- bin/mozilla/ir.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index a5fea7016..886ff65f3 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1196,7 +1196,7 @@ sub yes { sub search { $main::lxdebug->enter_sub(); - $main::auth->assert('general_ledger | invoice_edit'); + $main::auth->assert('general_ledger | vendor_invoice_edit'); my $form = $main::form; my %myconfig = %main::myconfig; diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 00d85443c..3217bf00b 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -256,7 +256,7 @@ sub form_header { my $locale = $main::locale; my $cgi = $main::cgi; - $main::auth->assert('invoice_edit'); + $main::auth->assert('vendor_invoice_edit'); my %TMPL_VAR = (); my @custom_hiddens; @@ -354,7 +354,7 @@ sub form_footer { my %myconfig = %main::myconfig; my $locale = $main::locale; - $main::auth->assert('invoice_edit'); + $main::auth->assert('vendor_invoice_edit'); $form->{invtotal} = $form->{invsubtotal}; $form->{oldinvtotal} = $form->{invtotal}; -- 2.20.1