I only want to show a checkbox to people who are logged into my application as administrators. I've tried this:
- var isAdmin = // check role code
- if(isAdmin)
p
label(for='myInput')
input(type='checkbox')
It always renders the checkbox though even if isAdmin is false. What is the correct way to do this?
Thanks,
Troy