Commit 67b8dd17 authored by Chris McDonough's avatar Chris McDonough

fix hasSessionData.

parent b10366be
...@@ -157,10 +157,7 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs): ...@@ -157,10 +157,7 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
security.declareProtected(ACCESS_SESSIONDATA_PERM, 'hasSessionData') security.declareProtected(ACCESS_SESSIONDATA_PERM, 'hasSessionData')
def hasSessionData(self): def hasSessionData(self):
""" """ """ """
key = self.getBrowserIdManager().getToken(create=0) return not not self.getSessionData(create=0)
if key:
if self._hasSessionDataObject(key):
return 1
security.declareProtected(ARBITRARY_SESSIONDATA_PERM,'getSessionDataByKey') security.declareProtected(ARBITRARY_SESSIONDATA_PERM,'getSessionDataByKey')
def getSessionDataByKey(self, key): def getSessionDataByKey(self, key):
......
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