cancel
Showing results for 
Search instead for 
Did you mean: 

Can I hide Empty Trash from some users?

Eric_Atencio
Champ on-the-rise
Champ on-the-rise

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.

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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>

Thank you, this worked perfectly

Getting started

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.