sakaiproject/nakamura — pull request #402 by zathomas (2011-11-11 19:48:34+00:00)
Title: KERN-2273

There is a solr dependency on this pull request:
https://github.com/sakaiproject/solr/pull/14

This commit grants the ability to use a query parameter called levels on the manager-viewer.json search to determine how many degrees of separation will be allowed between the user and the search results that they pull back.

For instance, if levels=0 (which is the default), the only content that will come back is that which has been _directly_ shared with the user. levels=1 will also find content that has been shared with any groups that the user is a direct member of, etc.

There is a hard-coded limit of six levels (Kevin Bacon reference!) to prevent a request triggering a very lengthy recursion.