Prevent read only users from deleting documents
Posted on 2004-08-25
I have a form and on this form, there are 2 fields which is an editable Readers field called AuthorizedReader and an editable Authors field call AuthorizedAuthor.
AuthorizedReader(consist of multi-values) can only read the document
AuthorizedAuthor(consist of multi-values) can read and edit and also delete document.
There are many documents in this db, thus users in AuthorizedReader field in document A may be users in AuthorizedAuthor field in document B.
How do I code my form to make it tat only users in field AuthorizedAuthor can delete the document, disallowing users in AuthorizedReader from deleting?