Hi,Users in group A, have Authors access with create and delete options checked in db ACL.
In a document, there is Author field that including group A.
This allows user group A to edit each others documents.
Till now everything is fine.
The problem is any one in group A can delete someone else’s document not just their own documents.
Any ideas how to make them delete just their own documents but edit others document??
//Sara
Subject: Not to delete others doc. just their own
I will be curious to see what others come back with.
I would suggest you look at the Database script event QueryDelete. If they are the creator of the document - then they can delete it otherwise, continue = False.
What I’m not sure how to handle is if they select 10 documents and they are creator 3 of the 10 then delete those 3 and leave the other 7 vs all or nothing.
Subject: RE: Not to delete others doc. just their own
In the Querydocumentdelete event, set Continue to False. Set a NotesDocumentCollection to Source.Documents. Go through the collection to determine whether the user should be ablt to delete the document. If the user has permission, then use the Remove method – which does a back-end deletion and will not fire the querydocumentdelete event again. If the user doesn’t have permission, you don’t have to do anything – you have already set Continue to False, so the normal delete won’t happen.
Subject: Not to delete others doc. just their own
Sara: unfortunately, the delete capability as you have seen, cannot be fine tuned to that degree. The way to do this is to remove their delete capability. Instead, if they want to delete, provide a button that sets a delete flag. Clearly, if they don’t have access to the document, they won’t be able to set this flag. Meanwhile, create an agent on the server which trawls through the documents looking for this flag. Whenever it is encountered, let the server delete it on their behalf. There are many other applications to this method. Hope this helps.