Permalink
Browse files

Extend effective_principals to include groups defined in admin UI.

  • Loading branch information...
tseaver committed Nov 8, 2011
1 parent acb1fa7 commit 074dfe020231efd00db41017fae4f6c200333ca0
Showing with 3 additions and 3 deletions.
  1. +1 −1 TODO.txt
  2. +2 −2 cartouche/pyramidpolicy.py
View
@@ -143,7 +143,7 @@ Password Reset
* Document using the policy.
-- [_] Extend ``effective_principals`` to include groups defined in admin UI.
+- [X] Extend ``effective_principals`` to include groups defined in admin UI.
User / Group Administration
@@ -109,8 +109,8 @@ def _getConfirmed(self, request):
def _getGroups(self, uuid, request):
confirmed = self._getConfirmed(request)
- record = confirmed.get(uuid)
- return list(getattr(record, 'groups', ()))
+ confirmed._getCartouche()
+ return confirmed._getMapping('user_groups').get(uuid) or []
def cartoucheAuthenticationPolicy(_context, config_file, identifier_name):

0 comments on commit 074dfe0

Please sign in to comment.