<?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: Conditionally show &amp;quot;Publish&amp;quot; tab using XML extension in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/conditionally-show-quot-publish-quot-tab-using-xml-extension/m-p/314202#M1203</link>
    <description>&lt;P&gt;Hey Stupid! Shove this in your XML Extension to disable that tab for all "members".&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&gt;
&lt;ACTION id="TAB_PUBLISH"&gt;
&lt;FILTER-ID&gt;denyForGroup1&lt;/FILTER-ID&gt;
&lt;/ACTION&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"&gt;
&lt;FILTER id="denyForGroup1"&gt;
&lt;RULE grant="false"&gt;
&lt;GROUP&gt;members&lt;/GROUP&gt;
&lt;/RULE&gt;
&lt;/FILTER&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2014 20:49:26 GMT</pubDate>
    <dc:creator>nathan1620_</dc:creator>
    <dc:date>2014-11-19T20:49:26Z</dc:date>
    <item>
      <title>Conditionally show "Publish" tab using XML extension</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/conditionally-show-quot-publish-quot-tab-using-xml-extension/m-p/314201#M1202</link>
      <description>&lt;P&gt;I'm trying to conditionally show the "publish" tab using an XML extension. I only want it to appear when the current user is an administrator. Here's what I have so far, but the publishing tab still appears for non-admins:&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&gt;
&lt;ACTION enabled="true" id="TAB_PUBLISH"&gt;
&lt;CONDITION&gt;#{currentUser.administrator}&lt;/CONDITION&gt;
&lt;/ACTION&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 19:48:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/conditionally-show-quot-publish-quot-tab-using-xml-extension/m-p/314201#M1202</guid>
      <dc:creator>nathan1620_</dc:creator>
      <dc:date>2014-11-19T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally show "Publish" tab using XML extension</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/conditionally-show-quot-publish-quot-tab-using-xml-extension/m-p/314202#M1203</link>
      <description>&lt;P&gt;Hey Stupid! Shove this in your XML Extension to disable that tab for all "members".&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&gt;
&lt;ACTION id="TAB_PUBLISH"&gt;
&lt;FILTER-ID&gt;denyForGroup1&lt;/FILTER-ID&gt;
&lt;/ACTION&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"&gt;
&lt;FILTER id="denyForGroup1"&gt;
&lt;RULE grant="false"&gt;
&lt;GROUP&gt;members&lt;/GROUP&gt;
&lt;/RULE&gt;
&lt;/FILTER&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 20:49:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/conditionally-show-quot-publish-quot-tab-using-xml-extension/m-p/314202#M1203</guid>
      <dc:creator>nathan1620_</dc:creator>
      <dc:date>2014-11-19T20:49:26Z</dc:date>
    </item>
  </channel>
</rss>

