]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/do.pl
Einkaufs-/Verkaufsprozesse: optionale Einschränkungen für gewisse Aktionen
[kivitendo-erp.git] / bin / mozilla / do.pl
index 67f2740c5966665c57b7e7841b49fd35d5e48e82..88ae6c387336e73c8b719fdebb93b4de0a7ea5d9 100644 (file)
@@ -85,6 +85,10 @@ sub add {
 
   check_do_access();
 
+  if (($::form->{type} =~ /purchase/) && !$::instance_conf->get_allow_new_purchase_invoice) {
+    $::form->show_generic_error($::locale->text("You do not have the permissions to access this function."));
+  }
+
   my $form     = $main::form;
 
   set_headings("add");