AnsweredAssumed Answered

How to check the user access in document-details.ftl template?

Question asked by xiebo on Jul 15, 2015
Latest reply on Jul 15, 2015 by niketapatel
Scenario: I want to check whether a user can access this doc. If not, just ignore the following sub-templates (such as <@region id="web-preview" scope="template"/>).


<#if (hasAccess == "true")>
     <@region id="web-preview" scope="template"/>
</#if>


Question: How to check whether a user can access this doc in document-details.ftl template? Is there any TemplateNode that I can use? such as "document", etc

Outcomes