mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-09-01 17:50:34 +00:00
Merge pull request #5796 from timothestoifl24/claude/nifty-neumann-83e87c
Fix missing `new` on PermissionError so denied requests return 403, not 404
This commit is contained in:
commit
ab893706da
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ export default function (tokenString) {
|
|||
err.permission = permission;
|
||||
err.permission_data = data;
|
||||
logger.error(permission, data, err.message);
|
||||
throw errs.PermissionError("Permission Denied", err);
|
||||
throw new errs.PermissionError("Permission Denied", err);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue