Try our conversational search powered by Generative AI!

No affect using SearchDataSource.AsscessLevel=EPiServer.Security.AccessLevel.NoAccess,

Vote:
 

I need to get a list all page results without considering the user's role with the access rights. Is there any way to do it.  Tired SearchDataSource.AsscessLevel=EPiServer.Security.AccessLevel.NoAccess, but it still filter out the pages that only allow memeber to access.

#37517
Mar 09, 2010 11:19
Vote:
 
I can se using reflector that PageTextIndexDB's function  SearchPages does this at the end:


if (pageData.GetSecurityDescriptor().HasAccess(PrincipalInfo.CurrentPrincipal, AccessLevel.Read))
{
results.Add(pageData, pageRank);
}


Which makes the result return 0 since the user dont has read access even though we uses SearchDataSource.AsscessLevel=EPiServer.Security.AccessLevel.NoAccess
 
i've reported this as a bug.
 
 
#50483
May 03, 2011 15:49
Vote:
 

here's the registered bug number 

Bug #64874: Setting SearchDataSource AccessLevel does not work correctly

#61532
Sep 21, 2012 14:47
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.