I wouldn’t expect that particular line to give you an error, but attempting to set/change the item value and save the document later in the script should give you an error. That’s how it’s supposed to work, since access is now limited.
But the fact is that when the user has enough rights to access the section the code fails anyway. I would expect that the code could see the field in this situation.
The code is running in the Click event of a button, and tries to access a NotesRichTextItem to attach a document to it.
This sentence tries to retrieve a reference to the NotesRichTextItem but returns Nothing (when the item is outside the control access section everything works fine).
Sub Click(Source As Button)
…
Set uidoc = workspace.CurrentDocument
Set thisDoc = uidoc.Document
Set oPlantilla = viewdoc.getfirstitem ("Body")
Set oSitePack = thisDoc.GetFirstItem("SitePack")
Call oSitePack.AppendRTItem( oPlantilla)
Call thisDoc.Save (False,True)
.......