Search Page - Show Assets that user doesn't have permission to view


#1

Matrix Version:5.3.4.0

Hi,

I’ve a search page to display a list of Standard Pages dependent on input, I’m then using this as nested content to display as blocks on the page (content related to x, etc).

Some of the content however is to be only accessed if you are logged in, and as a result a public user has no permission to view it. I’d like them to still be able to see the LINK to the page in the search page, however. Obviously as they don’t have permissions to view the page, the page doesn’t come up via the Search Page, and the link is absent from my display.

Is there any way to circumvent access permissions when pulling through results for a search?

Regards,
drif


(Bart Banda) #2

Hmm, I don’t think so, as that would make the assets and their information accessible to public users.

There is a setting on the search page called “Search as public user” that you could try and turn off, and then don’t perform an access check either when doing the search, that might do it?

The alternative is to proxy the search page using a REST asset that accesses it instead where you feed it a hardcoded username and password as the authentication to it, then you nest in the REST asset instead.