allow hash_vars in verify signature, thanks Anthony
This commit is contained in:
@@ -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
@@ -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=''):
|
||||
|
||||
Reference in New Issue
Block a user