Show flash message on every page when cheater is logged in

This commit is contained in:
Arsen Melikyan
2016-07-27 19:40:20 +04:00
parent 0520a7b3c9
commit 510ce1fe83
3 changed files with 32 additions and 2 deletions

View File

@@ -336,7 +336,7 @@ module.exports = function(app) {
return data;
}, {});
if (userPortfolio.isCheater) {
if (userPortfolio.isCheater && !user) {
req.flash('errors', {
msg: dedent`
Upon review, this account has been flagged for academic