Affects Version/s: 7.0.0 M3
Steps to reproduce:
1. Create a category with "Viewable by Owner" permissions (remove any other permissions)
2. Create a document and add the category to it
3. Add a Search portlet to a page
4. Create a new user
5. Log in with this user, and search for your document in the Search portlet
Actual Result: In the search results you will see the document AND the related Category, even though you don't have view permissions for it. The user can even use this Category as a search filter.
Expected Result: Search portlet shouldn't show Categories that the user doesn't have permissions.
Reproduced on master - c078a28