Is there a way to prevent all users from creating/editing documents in a database for a specific time? “example, no one can create/edit during Fri 12 pm to Mon 12 pm”. Access would be restored after this time. I’m thinking that the ACL will need to be manipulated then placed back to original settings to control this. If anyone has done this before please let me know the best approach. Thanks
Subject: Is there a way to manipulate database access for a specific time, then change it back to original settings?
I’m not sure that changing the ACL is the best way. Could you have a script that runs when you try and compose the document that doesn’t let you if certain time criteria are met?
Subject: RE: Is there a way to manipulate database access for a specific time, then change it back to original settings?
Opps - this was supposed to be a response to Mark’s post …
I’d agree - Create a library function that decides if a document could be saved or not, and call that function in every form event that may allow a document to be changed.
QuerySave
QueryOpen (stop the user from opening a document in edit mode)
QueryModechange (Stop the user from putting the document into edit mode)
QueryDelete in the database events
etc…
I’d set up the function to read a profile document that would allow me to specify the times editing should be prevented. You could also have a list of exception roles or ID’s to allow administrators to update document in the time period, or to allow this checking for only certain form names.
Subject: Is there a way to manipulate database access for a specific time, then change it back to original settings?
Sorry, I should add that I’m looking to do this automatically. I am hoping that the nsf file can have a setting changed to control this.
Subject: RE: Is there a way to manipulate database access for a specific time, then change it back to original settings?
you can code an agent in LotusScript to do it for you.
Subject: RE: Is there a way to manipulate database access for a specific time, then change it back to original settings?
Does it make sense to have an agent turn everyone to reader in the ACL settings on Frid, then another agent to reinstate the orginal ACL settings on Monday? I will need to capture the original settings to put them back.
Subject: RE: Is there a way to manipulate database access for a specific time, then change it back to original settings?
You can do this with a LS agent. Just write the original settings to a log file, then read it to get them in the Monday agent. Make sure you leave the agent signer with manager access so that the agent can access the acl and make the changes to it on Monday.