From 09bb2449d3135b7c1bb7c1db19847704193a1b7a Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 19 Aug 2012 13:49:26 -0500 Subject: [PATCH] fixed issue 937, thanks Dulakian --- VERSION | 2 +- gluon/sqlhtml.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 2151e1f5..c25729de 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-19 13:45:19) dev +Version 2.00.0 (2012-08-19 13:49:23) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 0ba9c95e..91d5cfb6 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1627,9 +1627,9 @@ class SQLFORM(FORM): referrer = session.get('_web2py_grid_referrer_'+formname, url()) if user_signature: - if (args != request.args and \ + if (args != request.args and user_signature and \ not URL.verify(request,user_signature=user_signature)) or \ - (not auth.user and \ + (not session.auth.user and \ ('edit' in request.args or \ 'create' in request.args or \ 'delete' in request.args)):