debugging

This commit is contained in:
Erik 2023-07-04 19:54:54 +03:00
parent 9aae5b576a
commit 1c3b75579b
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -273,7 +273,7 @@ class Authenticator
if (user.hasPermission(permission, level)) if (user.hasPermission(permission, level))
return next(); return next();
this.#logger.debug(`Invalid perms ${permission}, ${level}\n${inspect(req.user.permissions)}`); this.#logger.debug(`Invalid perms: Expected ${permission} to be ${level} for user ${user.name}\n${inspect(user.permissions)}`);
return res.status(403).send('Insufficient permissions'); return res.status(403).send('Insufficient permissions');
}; };