Skip to content

Commit

Permalink
Merge pull request #41 from tdamsma/master
Browse files Browse the repository at this point in the history
Update get_user.py
  • Loading branch information
ergo committed Aug 2, 2016
2 parents 80f5ba5 + d87e6ef commit 297432d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ziggurat_foundations/ext/pyramid/get_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import importlib

from ziggurat_foundations.models.base import get_db_session
from pyramid.security import unauthenticated_userid

CONFIG_KEY = 'ziggurat_foundations'
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -40,7 +39,7 @@ def session_provider_callable(request):
# This function is bundled into the request, so for each request you can
# do request.user
def get_user(request):
userid = unauthenticated_userid(request)
userid = request.unauthenticated_userid
if test_session_callable == None:
# set db_session to none to pass to the UserModel.by_id
db_session = None
Expand Down

0 comments on commit 297432d

Please sign in to comment.