Hello, I need to hide the remove workspace button from the web UI.
So far I have written a filter extension to grant delete permission only to workspace types and administrators members:
<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">
<filter id="canRemove">
<rule grant="true">
<permission>Remove</permission>
<type>Workspace</type>
<group>administrators</group>
</rule>
</filter>
</extension>
Also I found this guide https://www.nuxeo.com/blog/qa-friday-remove-tabs-buttons-links-specific-path/ which says I need to associate the filter to the action id in order to override it.
So I coded another extension to associate it like this:
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
<action id="TAB_TRASH_CONTENT">
<filter-id>canRemove</filter-id>
</action>
<action id="CURRENT_SELECTION_TRASH">
<filter-id>canRemove</filter-id>
</action>
</extension>
However it is not working with any of this id's, and I can't find what the actual action id is, despite searching through the nuxeo explorer as the blog entry suggested I've yet to find it.
How else can I find the action id for the delete button? Or is my extension wrong?