From 45534929ae6c2bc3d2d02be6c6f23f3caef02c65 Mon Sep 17 00:00:00 2001 From: hernani Date: Mon, 23 Aug 2010 18:09:55 +0000 Subject: [PATCH 1/1] 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 --- forum/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5