<?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 Re: AuthorityService, SearchService and document ownership in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/authorityservice-searchservice-and-document-ownership/m-p/262376#M215506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the solution: it's necessary to verify the permission of each node that lucene returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (permissionService.hasPermission(nodeRef, PermissionService.READ) == AccessStatus.ALLOWED) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* This is a valid nodeRef */&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* the user cannot access this node */&lt;BR /&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 18:49:27 GMT</pubDate>
    <dc:creator>marco_altieri</dc:creator>
    <dc:date>2011-02-23T18:49:27Z</dc:date>
    <item>
      <title>AuthorityService, SearchService and document ownership</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authorityservice-searchservice-and-document-ownership/m-p/262375#M215505</link>
      <description>Hi,if a user has the&amp;nbsp; ownership of a document (inside a Share document library) he can modify it even if he doesn't belong to the site anymore.This is considered a security issue by a client.To solve this problem, I'm trying to develop a custom AuthorityService that intercepts the removing of a user</description>
      <pubDate>Fri, 18 Feb 2011 06:52:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authorityservice-searchservice-and-document-ownership/m-p/262375#M215505</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2011-02-18T06:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: AuthorityService, SearchService and document ownership</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authorityservice-searchservice-and-document-ownership/m-p/262376#M215506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the solution: it's necessary to verify the permission of each node that lucene returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (permissionService.hasPermission(nodeRef, PermissionService.READ) == AccessStatus.ALLOWED) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* This is a valid nodeRef */&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* the user cannot access this node */&lt;BR /&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:49:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authorityservice-searchservice-and-document-ownership/m-p/262376#M215506</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2011-02-23T18:49:27Z</dc:date>
    </item>
  </channel>
</rss>

