X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=82513b98d4d7feb4ddf437440727af09fd4e9d33;hb=05f8844cf548de3fc962b4935d679053d5edd030;hp=2898222aa64ae8a8745a45c2625b25878ee6cc2d;hpb=48c71a4b51f5359a7ab7e9bc51280baf9bc9b9b2;p=kivitendo-erp.git diff --git a/SL/Auth.pm b/SL/Auth.pm index 2898222aa..82513b98d 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -1126,6 +1126,8 @@ sub evaluate_rights_ary { my $negate = 0; foreach my $el (@{$ary}) { + next unless defined $el; + if (ref $el eq "ARRAY") { my $val = evaluate_rights_ary($el); $val = !$val if $negate; @@ -1235,6 +1237,8 @@ sub assert { } if (!$dont_abort) { + $::dispatcher->reply_with_json_error(error => 'access') if $::request->type eq 'json'; + delete $::form->{title}; $::form->show_generic_error($::locale->text("You do not have the permissions to access this function.")); }