debugging
This commit is contained in:
parent
9aae5b576a
commit
1c3b75579b
@ -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');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user