![]() |
Sergey Kornilov admin 4/13/2011 |
I guess you can add a cross-reference table that holds links to both users and documents i.e. tblDocumentsUsers (ID, DocumentID, UserID). Admin will assign rights to certain files adding new records to this table. DocumentID and UserID can be lookup wizards. $strWhereClause = whereAdd($strWhereClause, "DocumentID in (select DocumentID from tblDocumentsUsers where UserID = '".$_SESSION["UserID"]."')";
|