linting :shipit:

v1.18.x
Julian Lam 8 years ago
parent a1b49a98e7
commit 23cdeeb344

@ -52,7 +52,9 @@ middleware.authenticate = function (req, res, next) {
middleware.ensureGlobalPrivilege = function (req, res, next) {
if (req.user) {
user.isAdminOrGlobalMod(req.uid, function (err, ok) {
if (ok) {
if (err) {
return next(err);
} else if (ok) {
return next();
} else {
controllers.helpers.notAllowed(req, res);

Loading…
Cancel
Save