{% if 'foo' in perms.testing %}had perm{% else %}didn't have perm{% endif %}