I am developing a community site based on alfresco webscripts. We have an issue with using search.
From what i've seen, when i use the search API from javascript, the search will return all items that the logged in user has access to.
However, when i use Java-based search (which i have to, because i want to order the results), i get all items … even the items the user does not have access to.
Is there a way to remove the results that the user does not have access to?