Show selected documents based on field
Posted on 2004-08-26
I have created a view and in this view, there are 4 columns - Category, Department, Date and Subject. In this view, there are a lot of documents and in the document, there are 2 fields - an editable readers field called AuthorizedReader (multivalues) and an authors field called AuthorizedAuthor(multivalues).
When user A is not listed in both fields(AuthorizedReader and AuthorizedAuthor), he/she will not be able to see the document in this view. Only when user A is listed in either AuthorizedReader or AuthorizedAuthor field, then he/she can open the document in the view.
If user B is listed in either fields, he/she will be able to see the document in the view and open it to see.This apply to users B,C,D and so on...
How do I hide those documents in a view when user A who is not listed in both fields?