<?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 Filters and action to setup in order to allow Drive Sync and DriveEdit in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/filters-and-action-to-setup-in-order-to-allow-drive-sync-and/m-p/325149#M12150</link>
    <description>&lt;P&gt;I will have three categories of users :&lt;/P&gt;
&lt;P&gt;one will be allowed to use all Nuxeo Drive features (Sync a folder, Drive Edit a document)
another one will only be allowed to edit a document online
The others will not be able to use any Nuxeo Drive features&lt;/P&gt;
&lt;P&gt;Those permissions will be based on belonging (or not) to two groups (drive and sync)&lt;/P&gt;
&lt;P&gt;I tried to override some filters from org.nuxeo.drive.actions, example :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;filter id="can_drive_edit" &amp;gt;
	&amp;lt;rule grant="true"&amp;gt;
		&amp;lt;condition&amp;gt;#{nuxeoDriveActions.canEditDocument(document)}&amp;lt;/condition&amp;gt;
		&amp;lt;group&amp;gt;ubx:applis:collab:nuxeo:drive_edit&amp;lt;/group&amp;gt;
	&amp;lt;/rule&amp;gt;
	&amp;lt;rule grant="false"&amp;gt;
		&amp;lt;facet&amp;gt;Collection&amp;lt;/facet&amp;gt;
	&amp;lt;/rule&amp;gt;
	&amp;lt;rule grant="false"&amp;gt;
		&amp;lt;condition&amp;gt;#{ ! currentUser.isMemberOf('ubx:applis:collab:nuxeo:drive_edit')}&amp;lt;/condition&amp;gt;
	&amp;lt;/rule&amp;gt;
&amp;lt;/filter&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It does not seem to work.
I would like not to have to define a custom filter and override all existing actions.
How should I procede ?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 09:26:03 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2015-12-16T09:26:03Z</dc:date>
    <item>
      <title>Filters and action to setup in order to allow Drive Sync and DriveEdit</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filters-and-action-to-setup-in-order-to-allow-drive-sync-and/m-p/325149#M12150</link>
      <description>&lt;P&gt;I will have three categories of users :&lt;/P&gt;
&lt;P&gt;one will be allowed to use all Nuxeo Drive features (Sync a folder, Drive Edit a document)
another one will only be allowed to edit a document online
The others will not be able to use any Nuxeo Drive features&lt;/P&gt;
&lt;P&gt;Those permissions will be based on belonging (or not) to two groups (drive and sync)&lt;/P&gt;
&lt;P&gt;I tried to override some filters from org.nuxeo.drive.actions, example :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;filter id="can_drive_edit" &amp;gt;
	&amp;lt;rule grant="true"&amp;gt;
		&amp;lt;condition&amp;gt;#{nuxeoDriveActions.canEditDocument(document)}&amp;lt;/condition&amp;gt;
		&amp;lt;group&amp;gt;ubx:applis:collab:nuxeo:drive_edit&amp;lt;/group&amp;gt;
	&amp;lt;/rule&amp;gt;
	&amp;lt;rule grant="false"&amp;gt;
		&amp;lt;facet&amp;gt;Collection&amp;lt;/facet&amp;gt;
	&amp;lt;/rule&amp;gt;
	&amp;lt;rule grant="false"&amp;gt;
		&amp;lt;condition&amp;gt;#{ ! currentUser.isMemberOf('ubx:applis:collab:nuxeo:drive_edit')}&amp;lt;/condition&amp;gt;
	&amp;lt;/rule&amp;gt;
&amp;lt;/filter&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It does not seem to work.
I would like not to have to define a custom filter and override all existing actions.
How should I procede ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filters-and-action-to-setup-in-order-to-allow-drive-sync-and/m-p/325149#M12150</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2015-12-16T09:26:03Z</dc:date>
    </item>
  </channel>
</rss>

