<?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 can I prevent a user action to be shown if the user has Write right? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320462#M7463</link>
    <description>&lt;P&gt;I have defined a user action that only needs to be shown if the current user doesn't have Write permission on the current document.
My guess is I should use the "Custom EL expression" field in Studio but I could use some guidance on what to write there.&lt;/P&gt;
&lt;P&gt;Basically I want it to say " Show the user action this only if the user doesn't have Write permission"&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2011 10:30:43 GMT</pubDate>
    <dc:creator>elteo_</dc:creator>
    <dc:date>2011-10-25T10:30:43Z</dc:date>
    <item>
      <title>How can I prevent a user action to be shown if the user has Write right?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320462#M7463</link>
      <description>&lt;P&gt;I have defined a user action that only needs to be shown if the current user doesn't have Write permission on the current document.
My guess is I should use the "Custom EL expression" field in Studio but I could use some guidance on what to write there.&lt;/P&gt;
&lt;P&gt;Basically I want it to say " Show the user action this only if the user doesn't have Write permission"&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:30:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320462#M7463</guid>
      <dc:creator>elteo_</dc:creator>
      <dc:date>2011-10-25T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I prevent a user action to be shown if the user has Write right?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320463#M7464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I found a ugly way to do that, waiting of a better solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;${documentManager.hasPermission(currentDocument.getRef(), "Write") == false}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2011 12:24:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320463#M7464</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-10-25T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I prevent a user action to be shown if the user has Write right?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320464#M7465</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;the right way is to define a rule that deny access (grant=false) after checking the permission Write.
For instance:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;action id="M_USER_ACTION" link="#{foo.bar}" order="100"
  label="foobar" icon="/icons/foobar.png"&amp;gt;
  &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
  &amp;lt;filter id="foobar-filter"&amp;gt;
    &amp;lt;rule grant="false"&amp;gt;
      &amp;lt;permission&amp;gt;Write&amp;lt;/permission&amp;gt;
    &amp;lt;/rule&amp;gt;
  &amp;lt;/filter&amp;gt;
&amp;lt;/action&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2011 10:59:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320464#M7465</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2011-10-26T10:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I prevent a user action to be shown if the user has Write right?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320465#M7466</link>
      <description>&lt;P&gt;this solution is not compliant with using Nuxeo Studio, the previous one will work  better&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 12:27:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-prevent-a-user-action-to-be-shown-if-the-user-has/m-p/320465#M7466</guid>
      <dc:creator>Alain_ESCAFFRE</dc:creator>
      <dc:date>2011-11-09T12:27:27Z</dc:date>
    </item>
  </channel>
</rss>

