Permalink
Browse files

Fix breaking test.

  • Loading branch information...
1 parent 3360feb commit 49e9a7e03566385e389d666fff17a3eae9914391 @tseaver tseaver committed Mar 23, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 pyramid_who/whov2.py
View
@@ -40,7 +40,9 @@ def __init__(self, config_file, identifier_id, callback=_null_callback):
self._callback = callback
def unauthenticated_userid(self, request):
- return self._get_identity(request)
+ identity = self._get_identity(request)
+ if identity is not None:
+ return identity['repoze.who.userid']
def authenticated_userid(self, request):
""" See IAuthenticationPolicy.

0 comments on commit 49e9a7e

Please sign in to comment.