Einkaufsrechnungen: Prüfung auf falschen Rechtenamen gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 May 2011 14:19:38 +0000 (16:19 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 May 2011 14:19:38 +0000 (16:19 +0200)
Rechtename für Einkaufsrechnungen ist "vendor_invoice_edit", nicht
"invoice_edit". Fix für Bug 1631.

bin/mozilla/ap.pl
bin/mozilla/ir.pl

index a5fea70..886ff65 100644 (file)
@@ -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;
index 00d8544..3217bf0 100644 (file)
@@ -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};