Merge pull request #8931 from BerkeleyTrue/fix/remove-verify-flash

fix(email): Remove flash until author required bug is fixed
This commit is contained in:
Quincy Larson
2016-06-03 00:21:19 -07:00

View File

@ -30,6 +30,9 @@ export function ifNoUser401(req, res, next) {
} }
export function flashIfNotVerified(req, res, next) { export function flashIfNotVerified(req, res, next) {
return next();
/*
// disabled until authorized required bug is fixed
const user = req.user; const user = req.user;
if (!user) { if (!user) {
return next(); return next();
@ -42,5 +45,5 @@ export function flashIfNotVerified(req, res, next) {
'<a href="/update-email">here</a>.' '<a href="/update-email">here</a>.'
}); });
} }
return next(); */
} }