Alright, I'm not sure if this is a bug or I'm going crazy. I'm trying to add a sub-navigation tab inside of <xen:if is="{$canSearch}">blah blah blah</xen:if>. Now presumably this should work as not too far above it a sub-navigation tab does the same thing, namely this bit under the Forums tab:
Now the problem is that while the search forums subnav works just fine, only displaying to those who are allowed to search, any custom tab using this permission will never be shown.
So am I losing my mind or is the $canSearch being removed from the params array right after it's used in the Forums navigation group?
Code:
<xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>
Now the problem is that while the search forums subnav works just fine, only displaying to those who are allowed to search, any custom tab using this permission will never be shown.
So am I losing my mind or is the $canSearch being removed from the params array right after it's used in the Forums navigation group?