Access error for the System.FileDocument entity

0
I have a page in a module where i display the contents of the Syste.FileDocument. I get the below errors: 1.No read access to attribute 'Name' in entity 'System.FileDocument' for user role 'Administrator' (with role 'Administrator' in module 'System'). 2.No read access to attribute 'Size' in entity 'System.FileDocument' for user role 'Administrator' (with role 'Administrator' in module 'System'). 3.No access to entity 'System.FileDocument' for user role 'Administrator' (with role 'Administrator' in module 'System'). The same page works in a different project without any issues. Any ideas? The user role Administrator does have the module role Administrator from the  system module.
asked
1 answers
1

You shouldn’t access System.FileDocument directly. Have a look at the Security of the System module to see what you do have access to.

In this case, try creating a Generalisation from System.FileDocument and using that instead.


Hope this helps.

answered