From afc2b246db107d60ade42b944899bd236776d73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 21 Jan 2015 17:22:06 +0100 Subject: [PATCH] Fixed bug in chatbox. --- openslides/core/chatbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/core/chatbox.py b/openslides/core/chatbox.py index 614380465..382463352 100644 --- a/openslides/core/chatbox.py +++ b/openslides/core/chatbox.py @@ -25,13 +25,13 @@ class ChatboxSocketHandler(SockJSConnection): engine = import_module(settings.SESSION_ENGINE) try: session_key = info.get_cookie(settings.SESSION_COOKIE_NAME).value - session = engine.SessionStore(session_key) - pk = session.get_decoded().get('_auth_user_id') + session_store = engine.SessionStore(session_key) + pk = session_store.get('_auth_user_id') except AttributeError: return False try: - self.user = User.objects.get(pk) + self.user = User.objects.get(pk=pk) except User.DoesNotExist: return False