Preventing documents from deleting

Hi,

how can I prevent, that a user, who right-clicks on an entry of a view, is able to delete it ?

Thanks and regards,

Bernd

Subject: Preventing documents from deleting

To be able to delete a document, two conditions must be met:1. User must have edit rights for the document (if user is editor OR is author and the document contains an author field that grants him author access)

  1. User must have delete rights on the database (property in the database ACL)

If these conditions are met, the only way to stop a deletion is to trap the QueryDocumentDelete event (in the Database Script).

You can write code that checks some things (what kind of document is being deleted, how many documents are selected, …) and stop the delete by setting Continue to False.

Subject: RE: Preventing documents from deleting

Hi Jan,

Can you let me know about the suggestion that you have?

  1. User must have delete rights on the database (property in the database ACL) If these conditions are met, the only way to stop a deletion is to trap the QueryDocumentDelete event (in the Database Script). You can write code that checks some things (what kind of document is being deleted, how many documents are selected, …) and stop the delete by setting Continue to False.

I don’t get it.

Thank you.

Mike Woo

Subject: My previous idea has been deleted, on the grounds that it was rubbish!

Use the QueryDocumentDelete Event in the Database Script.

Subject: Do not give them delete access in the DB ACL.