Deek
Member
I've created a permission ['developers']['canDownload'] and I'd like to check the permission in templates.
I check for the permission by using
This will work if the permission is set to allow or never but the check does not get run properly in the default state, not set. Is there a template syntax that will check if a viewParam is unset so I can apply logic to it?
I check for the permission by using
Code:
<xen:if is="{$visitor.permissions.developer.canDownload} == 'allow'">
This will work if the permission is set to allow or never but the check does not get run properly in the default state, not set. Is there a template syntax that will check if a viewParam is unset so I can apply logic to it?