Prevent raise error when you have no permission to View Document Module....
Rafael Monnerat authored
Prevent raise error when you have no permission to View Document Module. gettattr should not be used as conditions for these cases.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23096 20353a03-c40f-0410-a6d1-a30d3c3de9de
328714ca