fixed probelm in auth.mygroups

This commit is contained in:
Massimo Di Pierro
2012-01-29 15:53:25 -06:00
parent f84238c827
commit 891f04106b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -872,7 +872,7 @@ class Auth(object):
request = current.request
session = current.session
auth = session.auth
self.mygroups = auth.mygroups or {}
self.mygroups = auth and auth.mygroups or {}
if auth and auth.last_visit and auth.last_visit + \
datetime.timedelta(days=0, seconds=auth.expiration) > request.now:
self.user = auth.user