X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=82513b98d4d7feb4ddf437440727af09fd4e9d33;hb=2a496ad85e9117b7cfaaa315b208f478eba30ffd;hp=9301796032f502567d5d0a44a9ba0fa0d8855208;hpb=108753a78b203dbe0ccbe6438cc16c8df33c04d3;p=kivitendo-erp.git diff --git a/SL/Auth.pm b/SL/Auth.pm index 930179603..82513b98d 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -1237,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.")); }