cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Drive : "pause" mode (synchro disabled) by default

Henri_Jacob
Champ on-the-rise
Champ on-the-rise

I wish to use Nuxeo Drive for online editing purpose only. One way is to use ndrive in pause mode by suspending synchro.
/> But I can't see "pause" command option when lauching ndrive .... Is this the right way ? NB : I could see in manager.py that ndrive starts in pause mode only if debug log option is enable.
/> Thanks for any suggestion. Henri

2 REPLIES 2

pibou_Bouvret
Elite Collaborator
Elite Collaborator

Bonjour Henri,

we have had the same kind of problem and solved it server side by filtering some actions (such as synchronize) according to the membership of the current user to a dedicated group. By default, users cannot use Nuxeo Drive, some can only edit online and others can synchronize folderish documents.

Henri_Jacob
Champ on-the-rise
Champ on-the-rise

Thanks Pibou ! This is actually a solution. I changed filters like this, but nothing changed :

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
        point="filters">

<filter id="can_drive_edit">
          <rule grant="true">
                <condition>#{nuxeoDriveActions.canEditDocument(document)}</condition>
                <condition>#{currentUser.isMemberOf('membersEdit')}</condition>
          </rule>
          <rule grant="false">
                <facet>Collection</facet>
          </rule>
        </filter>

 <filter id="can_sync_current_doc">
          <rule grant="false">
                <type>Domain</type>
                <type>SectionRoot</type>
                <type>TemplateRoot</type>
                <type>WorkspaceRoot</type>
                <type>Forum</type>
                <type>Collections</type>
          </rule>
          <rule grant="true">
                <condition>#{canSynchronizeCurrentDocument}</condition>
                <condition>#{currentUser.isMemberOf('membersSynchro')}</condition>
          </rule>
        </filter>

</extension>

Any idea ? Henri