Snog
Well-known member
I have a custom permission (Create private thread) and it is set to 'Yes' for a specific forum node...
In the template I've tried to check it with both of these...
But, neither one works.
When I check the data at the template level (dump $xf.visitor), the permission combination is missing for the user...
This is in the forum_post_thread template, if that makes a difference.
The specific place it's being checked is immediately after
In the template I've tried to check it with both of these...
Code:
<xf:if is="{{ $xf.visitor.hasPermission('forum', 'snog_create_private') }}">
OR
<xf:if is="$xf.visitor.hasPermission('forum', 'snog_create_private')">
When I check the data at the template level (dump $xf.visitor), the permission combination is missing for the user...
This is in the forum_post_thread template, if that makes a difference.
The specific place it's being checked is immediately after
Code:
<xf:macro template="helper_thread_options" name="thread_status" arg-thread="{$thread}" />
Last edited: