make sure user id are compared as strings
This commit is contained in:
parent
ff156169a1
commit
5499a0bd1a
|
@ -277,7 +277,7 @@ class FormData(StorableObject):
|
|||
get_substitution_variables_list = classmethod(get_substitution_variables_list)
|
||||
|
||||
def is_submitter(self, user):
|
||||
if self.user_id and self.user_id == user.id:
|
||||
if self.user_id and str(self.user_id) == str(user.id):
|
||||
return True
|
||||
if self.user_hash and self.user_hash == user.hash:
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue