<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to check the user access in document-details.ftl template? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-check-the-user-access-in-document-details-ftl-template/m-p/291177#M244307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scenario: I want to check whether a user can access this doc. If not, just ignore the following sub-templates (such as &amp;lt;@region id="web-preview" scope="template"/&amp;gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;#if (hasAccess == "true")&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@region id="web-preview" scope="template"/&amp;gt;&lt;BR /&gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 07:08:18 GMT</pubDate>
    <dc:creator>xiebo</dc:creator>
    <dc:date>2015-07-15T07:08:18Z</dc:date>
    <item>
      <title>How to check the user access in document-details.ftl template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-check-the-user-access-in-document-details-ftl-template/m-p/291177#M244307</link>
      <description>Scenario: I want to check whether a user can access this doc. If not, just ignore the following sub-templates (such as &amp;lt;@region id="web-preview" scope="template"/&amp;gt;).&amp;lt;#if (hasAccess == "true")&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@region id="web-preview" scope="template"/&amp;gt;&amp;lt;/#if&amp;gt;‍‍‍‍‍Question: How to check w</description>
      <pubDate>Wed, 15 Jul 2015 07:08:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-check-the-user-access-in-document-details-ftl-template/m-p/291177#M244307</guid>
      <dc:creator>xiebo</dc:creator>
      <dc:date>2015-07-15T07:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the user access in document-details.ftl template?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-check-the-user-access-in-document-details-ftl-template/m-p/291178#M244308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think there is any root object is available to check user permission on content. Only available is user is admin, guest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As alternate solution, You can call alfresco script in js and may verify user access. You can refer - customise-dashboard.ftl and customise-dashboard.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 10:04:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-check-the-user-access-in-document-details-ftl-template/m-p/291178#M244308</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2015-07-15T10:04:47Z</dc:date>
    </item>
  </channel>
</rss>

