Hi There,
In Nuxeo 5.8 I want to hide the edit tab for users with access rights : "write".
The tab should be available for users with access rights: "manage everything".
In Studio I've added the following extension points:
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
<action id="TAB_WORKSPACE_EDIT">
<filter-id>denyForWrite</filter-id>
</action>
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
<filter id="denyForWrite">
<rule grant="false">
<permission>Write</permission>
<type>Workspace</type>
<type>WorkspaceRoot</type>
</rule>
<rule grant="true">
<permission>Manage everything</permission>
<type>Workspace</type>
<type>WorkspaceRoot</type>
</rule>
</filter>
</extension>
For some reason however the tab is also hidden for users with "manage everything" rights, I also noticed that when I don't have the <type>WorkspaceRoot</type> specified it also hides the button in the workspaceroot.
Is there something I'm not doing right?
Thanks in advance,
Bauke Roo