In a Visualforce page I am outputting fields of ContentNote
(such as "CreatedDate") using the same pattern that already works for Note
(and many other types) where the sob
is a reference to the SObject:
<apex:repeat value="{!noteFields.names}" var="f">
<apex:column value="{!noteWrapper.sob[f]}"/>
</apex:repeat>
but for any field of ContentNote
this error is logged:
System.VisualforceException: Read access denied for ContentNote, controller action methods may not execute.
and the page reports "Insufficient Privileges".
I see nothing that can be set in a profile (and am using a "System Administrator" profile). Also I can (painfully) work around this by indirecting through methods in the wrapper.
Can anyone explain what is going on here?