make sure user id are compared as strings

This commit is contained in:
Frédéric Péters 2012-07-01 15:49:26 +02:00
parent ff156169a1
commit 5499a0bd1a
1 changed files with 1 additions and 1 deletions

View File

@ -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