fixed issue 999 removed unwanted redirect in grid
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.0.8 (2012-09-12 10:43:36) stable
|
||||
Version 2.0.8 (2012-09-12 11:08:28) stable
|
||||
|
||||
+3
-2
@@ -1664,8 +1664,9 @@ class SQLFORM(FORM):
|
||||
return URL(**b)
|
||||
|
||||
referrer = session.get('_web2py_grid_referrer_'+formname, url())
|
||||
if user_signature:
|
||||
if (args != request.args and user_signature and \
|
||||
if user_signature:
|
||||
if ('/'.join(str(a) for a in args) != '/'.join(request.args) and \
|
||||
user_signature and \
|
||||
not URL.verify(request,user_signature=user_signature)) or \
|
||||
(not (session.auth and session.auth.user) and \
|
||||
('edit' in request.args or \
|
||||
|
||||
Reference in New Issue
Block a user