allow hash_vars in verify signature, thanks Anthony

This commit is contained in:
Massimo
2013-05-31 10:41:28 -05:00
parent ba22f9a3a5
commit 0850cadfdc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -3054,7 +3054,7 @@ class Auth(object):
return self.has_permission(name, table_name, record_id) return self.has_permission(name, table_name, record_id)
return self.requires(has_permission, otherwise=otherwise) 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 decorator that prevents access to action if not logged in or
if user logged in is not a member of group_id. if user logged in is not a member of group_id.
@@ -3062,7 +3062,7 @@ class Auth(object):
group_id is calculated. group_id is calculated.
""" """
def verify(): 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) return self.requires(verify, otherwise)
def add_group(self, role, description=''): def add_group(self, role, description=''):