aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2013-06-11 18:17:47 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2013-06-12 14:20:17 +0300
commitc4ea445f0db4dd93e282d4e6f705ecde68e29327 (patch)
treea3a0f5671d7920cf67ab169a156f9d75661d24e4
parentd49d19b589cce758654792b745b3585d65c04c2b (diff)
downloaddjango-crowd-rest-backend-c4ea445f0db4dd93e282d4e6f705ecde68e29327.tar.gz
Query nested groups from Crowd, not just top-level.
This might use config setting, but actually there's perfect sense to just use nested groups, period. Consider for example that you make group for site editors. Now your entire department is added to that group. You expect that you can edit site in this case, right?
-rw-r--r--crowdrest/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crowdrest/backend.py b/crowdrest/backend.py
index 595955b..ac01f89 100644
--- a/crowdrest/backend.py
+++ b/crowdrest/backend.py
@@ -293,7 +293,7 @@ class CrowdRestClient(object):
"Query for groups of given user and return dict of group fields from Crowd."
try:
crowd_logger.debug("Fetching groups of '%s'..."%username)
- url = self._url+"/user/group/direct.json?username=%s"%username
+ url = self._url+"/user/group/nested.json?username=%s"%username
u = self._opener.open(url)
return json.loads(u.read())
except urllib2.URLError, e: