Attachments: A way to disable, if the user has no rights

Hi there to all,

I want to close the attachments for users that haven’t the rights to see them. Right now if I restrict a user from attachments, he/she has still access to the attachment button on document view, so he can attach things.

I believe this button should exits only for users having rights to attachments. Or in another case there should be a right for users to attach anything to the server (I am tallking regarding server edition)