mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix: map PermissionError to HTTP Forbidden
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
4271ef740c
commit
ada90ed30b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ const mapOfHedgeDocErrorsToHttpErrors: Map<string, HttpExceptionConstructor> =
|
||||||
['ClientError', (object): HttpException => new BadRequestException(object)],
|
['ClientError', (object): HttpException => new BadRequestException(object)],
|
||||||
[
|
[
|
||||||
'PermissionError',
|
'PermissionError',
|
||||||
(object): HttpException => new UnauthorizedException(object),
|
(object): HttpException => new ForbiddenException(object),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'TokenNotValidError',
|
'TokenNotValidError',
|
||||||
|
|
Loading…
Reference in a new issue