Revision 2a496ad8
Von Moritz Bunkus vor mehr als 4 Jahren hinzugefügt
SL/Auth.pm | ||
---|---|---|
1237 | 1237 |
} |
1238 | 1238 |
|
1239 | 1239 |
if (!$dont_abort) { |
1240 |
$::dispatcher->reply_with_json_error(error => 'access') if $::request->type eq 'json'; |
|
1241 |
|
|
1240 | 1242 |
delete $::form->{title}; |
1241 | 1243 |
$::form->show_generic_error($::locale->text("You do not have the permissions to access this function.")); |
1242 | 1244 |
} |
Auch abrufbar als: Unified diff
Auth: fehlerhafte JSON-Requests mit JSON und richtigem HTTP-Response-Code beantworten