From: Jan Büren Date: Mon, 25 Mar 2019 12:11:47 +0000 (+0100) Subject: Falsches Recht für Kreditorenbeleg überprüft X-Git-Tag: release-3.5.4~83 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a8dac8db56dfe7c9050b0383cd65c37ca86a292c;p=kivitendo-erp.git Falsches Recht für Kreditorenbeleg überprüft --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 559154854..49f6f7a63 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1201,7 +1201,7 @@ sub setup_ap_search_action_bar { sub setup_ap_transactions_action_bar { my %params = @_; - my $may_edit_create = $::auth->assert('vendor_invoice_edit', 1); + my $may_edit_create = $::auth->assert('ap_transactions', 1); for my $bar ($::request->layout->get('actionbar')) { $bar->add( @@ -1234,7 +1234,7 @@ sub setup_ap_display_form_action_bar { my $is_storno = IS->is_storno(\%::myconfig, $::form, 'ap', $::form->{id}); my $has_storno = IS->has_storno(\%::myconfig, $::form, 'ap'); - my $may_edit_create = $::auth->assert('vendor_invoice_edit', 1); + my $may_edit_create = $::auth->assert('ap_transactions', 1); my $has_sepa_exports; if ($::form->{id}) {