Technical support This forum is closed.
Version 1.x > Technical support > filterResultsByReadPermission View modes: 
User avatar
Member
Member
Andre van der Hoeven - 3/2/2006 12:09:09 PM
   
filterResultsByReadPermission
Hi Petr,
I'm using the Kentico API to search my site with the filterResultsByReadPermission parameter set to true:

Functions.GetTreeProvider().Search("/", Kentico.CMS.TreeEngine.TreePathTypeEnum.AliasPath, SearchText, SearchModeEnum.AllWords, true, classNames, true, true);

but I do get results from a secured area:

<add key="CMSSecuredAreas" value="/Extranet" />
<add key="CMSSecuredAreasLogonPage" value="~/WebLogon.aspx"/>

When following the link in the search result, the logon form is presented. So, the current user (anonymous) does not have read permission in the secured area.

Can you tell me why pages from the secured area show up in the search results?
Thanks,
Andre


User avatar
Guest
admin - 3/2/2006 2:09:48 PM
   
Re: filterResultsByReadPermission
Hi Andre,

Thank you for your message. If you have a web site that is partially public and partially secured, you will need to use the settings explained in Kentico CMS Developer's Guide -> Knowledge Base -> KB0016. It will also solve this issue with search results.

Also, if you're using Kentico CMS API for searching, please make sure that you set the TreeProvider.UseID property value to the current user (Functions.GetUserID()).

Best Regards,