Link to home
Start Free TrialLog in
Avatar of Z_Beeblebrox
Z_Beeblebrox

asked on

Documents created using agent do not enforce readers field

Hi,

I have an agent which creates documents and populates readers and authors fields. Once the agent is done running, anyone with reader access to the database can access all of the documents, even if they are not in the readers field! Doing a ToolsRefreshAllDocuments fixes the problem, but I don't like this solution. I don't want anyone who is not listed as a reader to be able to view these documents at any time, instead of the current solution where they can see it between the time that document was created by the agent and the time the refresh is run.

Why is this like this and how can I fix it?

(Sorry I don't have more points to spare)

Zaphod.
ASKER CERTIFIED SOLUTION
Avatar of sk5t
sk5t

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Z_Beeblebrox
Z_Beeblebrox

ASKER

Thanks for the quick response. calling doc.ComputeWithForm (True, True) just before saving the document did the trick.

Zaphod.
Whoah, I think I was a bit too quick to dish out the points. That solution worked a little too well. I had a field which was of type authors which had as a default value the creator of the document, namely me. However I can no longer see the documents. I know they are there, but there is no way that I can get to them.

Zaphod.
Yikes, another issue. I have a role called [Readers] which allows people to read all documents in the database. However the agent does not respect this.

I can get around the previous issue by manually setting the field to be the current user, but this role thing is a bit of a problem.

Zaphod.