[TECHNICAL-SUPPORT] LPS-32718 Document Library & Display portlets - Make document type (DLFileEntryType) VIEW permission check consistent

Hi Sergio,

Finally, I was able to modify my pull according to our long conversations and your proposed requirements.

I have added comments to each commits, and I also have tried to separate the changes to different commits, in order to make reviewing easier.

I have tested my changes as much as I could, so I hope it meets the requirements.

Please, review my changes & let me know if you have any concerns.

Thanks & regards,
Tibor