X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=82513b98d4d7feb4ddf437440727af09fd4e9d33;hb=63cb5b41d9b06d0b7f522ef154dd9f57ea428bae;hp=9301796032f502567d5d0a44a9ba0fa0d8855208;hpb=de935e1f694d55122e39827950ed05f781656b0d;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.")); }