From: hernani Date: Mon, 23 Aug 2010 18:09:55 +0000 (+0000) Subject: Should fix the error reported in http://meta.osqa.net/questions/4487/error-500-when... X-Git-Tag: live~565 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/45534929ae6c2bc3d2d02be6c6f23f3caef02c65 Should fix the error reported in http://meta.osqa.net/questions/4487/error-500-when-user-try-to-see-his-closed-question . git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@569 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/models/user.py b/forum/models/user.py index 36f0e90..5aa8cc8 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -310,7 +310,7 @@ class User(BaseModel, DjangoUser): @true_if_is_super_or_staff def can_reopen_question(self, question): - return self == question.author and self.reputation >= settings.REP_TO_REOPEN_OWN + return self == question.author and self.reputation >= int(settings.REP_TO_REOPEN_OWN) @true_if_is_super_or_staff def can_delete_post(self, post):