From 528cf0ed0f94ea516991b1f86a415f021c840213 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 30 Aug 2012 08:14:10 -0500 Subject: [PATCH] fixed grin without login, thanks Liam --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5046c345..797c616a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.2 (2012-08-30 08:09:29) stable +Version 2.0.2 (2012-08-30 08:14:07) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 32979bcc..145fe029 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1656,7 +1656,7 @@ class SQLFORM(FORM): if user_signature: if (args != request.args and user_signature and \ not URL.verify(request,user_signature=user_signature)) or \ - (not session.auth.user and \ + (not (session.auth and session.auth.user) and \ ('edit' in request.args or \ 'create' in request.args or \ 'delete' in request.args)):