Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I sent this via email a while ago but don't see it showing up. If you get multiple versions of this I apologize.
Inside ACL code I'd like to see if the Editor session was started as read-only. I can see whether the specific documents are read-only using the doc_read_only() function, but it will return 0 (not read-only) for a given doc when Editor was started with the -r switch (session read-only) and that doc had doc_read_only(doc, 0) called on it, even though the session state seems to take precedence.
I can't seem to find anything in ACL or in the API for other languages like Java that indicates whether Editor was started as read-only. I also looked for something that would return the command line string that started Editor so I could search for "-r" in that string, but I can't seem to find anything like that, either. Any ideas?