From 9d75471488fcb6c8377aff64fd831e3dec01d703 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Sat, 3 Feb 2018 15:08:51 +0100 Subject: [PATCH] Fixed user type detection bug --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index bccbb31..34d6f48 100644 --- a/app.js +++ b/app.js @@ -177,7 +177,7 @@ handlebars = handlebars.create({ } }, isAnAdmin: function (value, options){ - if(value === 'true'){ + if(value === 'true' || value === true){ return options.fn(this); } return options.inverse(this);