<?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: Check permissions but skip the Lock policy in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/check-permissions-but-skip-the-lock-policy/m-p/315582#M2583</link>
    <description>&lt;P&gt;Hi Nelson,&lt;/P&gt;
&lt;P&gt;If you only want to remove the lock policy check, there's an extension point for security policies:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.core.security.SecurityService--policies" target="test_blank"&gt;http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.core.security.SecurityService--policies&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This should do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;extension point="policies" target="org.nuxeo.ecm.core.security.SecurityService"&amp;gt;
        &amp;lt;policy enabled="false" name="lock" /&amp;gt;
    &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Mar 2013 12:15:32 GMT</pubDate>
    <dc:creator>Laurent_Doguin</dc:creator>
    <dc:date>2013-03-07T12:15:32Z</dc:date>
    <item>
      <title>Check permissions but skip the Lock policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/check-permissions-but-skip-the-lock-policy/m-p/315581#M2582</link>
      <description>&lt;P&gt;I'm playing with a realtime edit framework for Nuxeo, the plan is to have a real time edit button to start a collaborative editing session so I'm locking the document to prevent concurrent changes, besides those made in the session of course.
What i'd like to know is if there's an easy way to check for permissions and skip the Lock policy check? Once a document is locked and a real time edit session's started users should be redirected to the current editing session but i need to check for permissions...
I ended up copying the SecurityService.hasPermission method and removing the policy check but I was wondering if there's an easier way ...&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 10:32:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/check-permissions-but-skip-the-lock-policy/m-p/315581#M2582</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2013-03-01T10:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check permissions but skip the Lock policy</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/check-permissions-but-skip-the-lock-policy/m-p/315582#M2583</link>
      <description>&lt;P&gt;Hi Nelson,&lt;/P&gt;
&lt;P&gt;If you only want to remove the lock policy check, there's an extension point for security policies:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.core.security.SecurityService--policies" target="test_blank"&gt;http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.core.security.SecurityService--policies&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This should do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;extension point="policies" target="org.nuxeo.ecm.core.security.SecurityService"&amp;gt;
        &amp;lt;policy enabled="false" name="lock" /&amp;gt;
    &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2013 12:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/check-permissions-but-skip-the-lock-policy/m-p/315582#M2583</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2013-03-07T12:15:32Z</dc:date>
    </item>
  </channel>
</rss>

