Fixed user type detection bug

react_convert
Mark Moffat 2018-02-03 15:08:51 +01:00
parent 01ce33a642
commit 9d75471488
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -177,7 +177,7 @@ handlebars = handlebars.create({
} }
}, },
isAnAdmin: function (value, options){ isAnAdmin: function (value, options){
if(value === 'true'){ if(value === 'true' || value === true){
return options.fn(this); return options.fn(this);
} }
return options.inverse(this); return options.inverse(this);