Restrict user to delete Attachment (pdf)

Is it possible in ERPNEXT to restrict permission to delete attached file, so only user can attach files but don’t allow them to delete, I tried the role permission manager but it’s not working.
Please fic this issue.

If a user uploaded a Attachment in the Purchase invoice field then they should not allow to modify/delete the attachment (pdf.) file.

Thank You