I'm using SharePoint Foundation 2013.
I've a page with many web parts that refer to document libraries. For each DL I've set specific authorizations.
Some users can see everything, so this is not a problem. Other user are authorized only on its DL (e.g.: User 1 can see/upload files only on DL 1).
When I try to login with this user (User 1) I see this error on a Web Part that correctly is "hidden":
Web Part Error: Access denied. You do not have permission to perform this action or access this resource.
Is it possible to hide this error if user is not authorized to see the DL?