Can anyone give me some ideas on how to track down the following problem.
When the following piece of code runs, a Reader (ACL) gets a ‘Error 4005: You are not authorized to perform that operation (UProfile)’ error.
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Set profileP=db.GetProfileDocument(“UProfile”, Lcase(session.UserName) )
I had put a $PublicAccess field with “1” as default value on the UProfile form. The user has the “Read/Write public documents” rights in the ACL.
I have watched it run in the LotusScript Debugger many times trying to get it. I tried with Author and Editor access types, but the error does not occur for those. I do not see any LotusScript code that may be run by the GetProfileDocument, so I am assuming that it is the GetProfileDocument itself that is having the problem.
Please let me know if I am missing something.
Thanks