Fixed user type detection bug
parent
01ce33a642
commit
9d75471488
2
app.js
2
app.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue