Hi

I am using Verity to search a documents database, in which one of the
fields is called 'Security'.  This holds the group/security information
for the document.  At present Verity is returning all matched results in
the database.

How can I configure the search results so that it will only return
documents that the logged in user is allowed to view ?

When setting up a collection I have specified a CUSTOM field i.e.

Custom2="security"> 

which holds the documents security details i.e. Group A, Group B etc.

and have set a session variable holding the groups that the user belongs
to.. (Group A, Group B etc....

<cfset session.groupname = QuotedValueList(UserGroups.groupname)>

How can I build this into the search results ??

<CFSEARCH 
 name = "GetResults"
 collection = "id"
    type = "simple"
 criteria = "#HTMLEditFormat(Form.Criteria)#"
 maxRows = "#Evaluate(Form.MaxRows + Form.StartRow)#"
 startRow = "#Form.StartRow#"
>

<CFOUTPUT query="GetResults">
 <a href="/documents/#custom1#">#title#</a>
<br>
#summary#
</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206850
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to