How to restrict to empty trashcan

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
lfedorikova
Member II

How to restrict to empty trashcan

Jump to solution

I would like to restrict emptying of trashcan by ordinary users. Permission to empty trashcan should have only users with admin role.

Is there any way how to solve this issue? For example to implement Java method used as evaluator before button displaying? Or any other sophisticated way, solution or implementation, how to secure this resctriction?

Thanks Smiley Happy

1 Solution

Accepted Solutions

Re: How to restrict to empty trashcan

Jump to solution

You can add your restrictions to Share UI and to Repository service.

In order to hide the Share UI button for non Admin users, you can extend Alfresco.ConsoleTrashcan YUI object:

https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/...

Regarding Repository service, you can create a new NodeServicePolicies.onDeleteNode behaviour listening to sys:archived nodes.

Software Engineer in Alfresco Search Team.
1 Reply

Re: How to restrict to empty trashcan

Jump to solution

You can add your restrictions to Share UI and to Repository service.

In order to hide the Share UI button for non Admin users, you can extend Alfresco.ConsoleTrashcan YUI object:

https://github.com/Alfresco/share/blob/alfresco-share-parent-6.2.0/share/src/main/webapp/components/...

Regarding Repository service, you can create a new NodeServicePolicies.onDeleteNode behaviour listening to sys:archived nodes.

Software Engineer in Alfresco Search Team.