fixes embarrassing auth oversight

This commit is contained in:
khanon 2023-07-16 07:31:44 +00:00
parent aee382c84e
commit 7478112077
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export const gatekeeper: RequestHandler = (req, res, next) => {
// TODO: Generate anonymous users based on IP address for public or proxy_key
// modes so that all middleware can assume a user of some sort is present.
if (token === ADMIN_KEY) {
if (ADMIN_KEY && token === ADMIN_KEY) {
return next();
}