Roles and Permissions to download files

I have a question about files uploaded into the Media Library.
Is there a method to limit the download of these resources? I saw that there is the possibility to change roles/permissions on the download but it doesn’t seem to work (or more probably I misunderstood the meaning of this setting)
Could anyone help me?