diff --git a/VERSION b/VERSION index 7f103fde..c3c8e8c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.7-stable+timestamp.2013.05.31.08.28.32 +Version 2.4.7-stable+timestamp.2013.05.31.10.40.23 diff --git a/gluon/tools.py b/gluon/tools.py index 8995e048..4417dcb6 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -3054,7 +3054,7 @@ class Auth(object): return self.has_permission(name, table_name, record_id) return self.requires(has_permission, otherwise=otherwise) - def requires_signature(self, otherwise=None): + def requires_signature(self, otherwise=None, hash_vars=True): """ decorator that prevents access to action if not logged in or if user logged in is not a member of group_id. @@ -3062,7 +3062,7 @@ class Auth(object): group_id is calculated. """ def verify(): - return URL.verify(current.request, user_signature=True) + return URL.verify(current.request, user_signature=True, hash_vars=hash_vars) return self.requires(verify, otherwise) def add_group(self, role, description=''):