mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
Fixed favicon not found etc.
This commit is contained in:
parent
8ab47761df
commit
33d80cdbad
3 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue