mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 08:17:57 +02:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -41,7 +41,10 @@ module.exports = function (middleware) {
|
||||
|
||||
middleware.exposePrivilegeSet = async (req, res, next) => {
|
||||
// Exposes a user's global/admin privilege set
|
||||
res.locals.privileges = { ...await privileges.global.get(req.user.uid), ...await privileges.admin.get(req.user.uid) };
|
||||
res.locals.privileges = {
|
||||
...await privileges.global.get(req.user.uid),
|
||||
...await privileges.admin.get(req.user.uid),
|
||||
};
|
||||
return next();
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user