From: Moritz Bunkus Date: Tue, 10 May 2011 14:19:38 +0000 (+0200) Subject: Einkaufsrechnungen: Prüfung auf falschen Rechtenamen gefixt X-Git-Tag: release-2.6.3~25^2~69 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4d59fd5d5211dc8fa2ad3fc611d05c39ef1fca34;p=kivitendo-erp.git Einkaufsrechnungen: Prüfung auf falschen Rechtenamen gefixt Rechtename für Einkaufsrechnungen ist "vendor_invoice_edit", nicht "invoice_edit". Fix für Bug 1631. --- 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};