03-09-2021 05:06 PM
We would like to only have the admins empty trash. I assume I need to make an extension point but I'm having a hard time finding where the Empty Trash button is in our project.
03-10-2021 07:48 AM
Hi Eric,
If you need to add some filters on the Nuxeo Web UI button to empty the trash, you should contribute to the slot contribution: https://github.com/nuxeo/nuxeo-web-ui/blob/92f887398bdf51835daa4881e2394d719a17af80/elements/nuxeo-w...
You should have in your custom bundle file something like:
<nuxeo-slot-content name="hardDeleteSelectionAction" slot="TRASH_RESULTS_SELECTION_ACTIONS" order="20">
<template>
<nuxeo-filter user="[[user]]" expression="user.isAdministrator">
<template>
<nuxeo-delete-documents-button documents="[[selectedItems]]" hard></nuxeo-delete-documents-button>
</template>
</nuxeo-filter>
</template>
</nuxeo-slot-content>
03-11-2021 03:58 PM
Thank you, this worked perfectly
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.