I am working on an intranet site that has role based protection enabled on all the items from the home page. While troubleshooting, I've notices that umbraco.library:HasAccess() returns false on these pages in the xslt. But when I'm logged in, I can access these pages just fine. Any ideas as to how to proceed from here?
It sounds like XSLTsearch is doing exactly what it is supposed to do. It will not display results that the currently-logged in user does not have access to. If you are logged in and have access to a page XSLTsearch will display those as well. This is for security... you wouldn't want a search result advertised (and show a snippet of its content!) except to people who have adequate permission to view the content itself.
XSLTSearch is not searching protected nodes
I am working on an intranet site that has role based protection enabled on all the items from the home page. While troubleshooting, I've notices that umbraco.library:HasAccess() returns false on these pages in the xslt. But when I'm logged in, I can access these pages just fine. Any ideas as to how to proceed from here?
It sounds like XSLTsearch is doing exactly what it is supposed to do. It will not display results that the currently-logged in user does not have access to. If you are logged in and have access to a page XSLTsearch will display those as well. This is for security... you wouldn't want a search result advertised (and show a snippet of its content!) except to people who have adequate permission to view the content itself.
cheers,
doug.
I found the issue was an error in the implementation of my LDAP membership provider. XSLTsearch and HasAcces are working just fine, thanks.
Excellent. Glad you've got it all working now.
cheers,
doug.
is working on a reply...