Developer forum

Forum » Feature requests » Omit paragraphs, that require logins, from search results

Omit paragraphs, that require logins, from search results

Thomas Clausen
Reply

When using the search module, you are able to get results for content on a page even though the content of that paragraph is "hidden" behind login.

On one of our solutions we have a page, where some of the paragraphs are set to only be visible when a users is logged in.
But when you search for a term/phrase in that specific paragraph (the term/phrase only appears in that paragraph on that page), that page gets included in the search results.

I reported this to support, as I thought this was a bug, but was asked to create a request here instead.

Best regards,
Thomas Clausen


Replies

 
Nicolai Pedersen
Reply

Hi Thomas

Yes, we cannot fix that - the search will find a page or not, and permissions is not able to be part of the search itself.

If you have permissions on the page it self, it will be removed from the search result. If you have permissions on the paragraph, that will not happen. You can remove the page from the search result by removing the "Show in searches" checkbox on the page. See dump.

BR Nicolai

Capture.PNG