sunny_mody
11 years agoAdvisor
Check for a permission using custom objects
Hi, I want to check whether a user has the permission to escalate the post or not on ForumTopicPage using context object like ${coreNode.permissions.hasPermission("can_update_community")}
But I am not able to get it, is there something wrong in this or how I can get it?
Thanks, Sunny
Hi sunny_mody - You have to use following:
<#if coreNode.permissions.hasPermission("update_community")> <!-- Content goes here --> </#if>
It is update_community instead of can_update_community.
I hope this helps.