Commit a8c331a6 authored by matt@zope.com's avatar matt@zope.com

Updated to fix key error

parent 056cd21a
......@@ -157,7 +157,8 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
security.declareProtected(ACCESS_SESSIONDATA_PERM, 'hasSessionData')
def hasSessionData(self):
""" """
if self.getBrowserIdManager().getToken(create=0):
key = self.getBrowserIdManager().getToken(create=0)
if key:
if self._hasSessionDataObject(key):
return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment