Fixed favicon not found etc.

This commit is contained in:
SamTV12345 2024-08-20 19:36:03 +02:00
parent 8ab47761df
commit 33d80cdbad
3 changed files with 11 additions and 9 deletions

View file

@ -72,7 +72,9 @@ const checkAccess = async (req:any, res:any, next: Function) => {
(r) => (skip || (r != null && r.filter((x) => (!requireAdmin || !x)).length > 0))) as boolean[];
} catch (err:any) {
httpLogger.error(`Error in preAuthorize hook: ${err.stack || err.toString()}`);
if (!skip) res.status(500).send('Internal Server Error');
if (!skip) {
res.status(500).send('Internal Server Error');
}
return;
}
if (skip) return;