Prevent deleting files from the file manager

Prevent deleting files from the file manager

by Eiz Eddin Al Katrib -
Number of replies: 0
Picture of Core developers Picture of Plugin developers

Hi,

I am using a file manager element in a custom form. Currently when a user clicks on an existing file in the file manager, they can either download the existing file or delete it, as you can see in the attached screenshot.

My questions is how can I disable/remove the delete option so users cannot delete an already uploaded file? Can I add a custom capability to control who has permission to delete files from a specific file area?

Thanks

Attachment Screen Shot 2016-11-07 at 18.59.59.png
Average of ratings: -