linting :shipit:

This commit is contained in:
Julian Lam
2016-12-02 10:07:33 -05:00
parent a1b49a98e7
commit 23cdeeb344

View File

@@ -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);