]> git.openstreetmap.org Git - osqa.git/commitdiff
Should fix the error reported in http://meta.osqa.net/questions/4487/error-500-when...
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 23 Aug 2010 18:09:55 +0000 (18:09 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 23 Aug 2010 18:09:55 +0000 (18:09 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@569 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/user.py

index 36f0e905d4e1357a9a02bb9d86d5345d56fc2a06..5aa8cc8ef1f95a66413ae9c4457c95495c1f40d5 100644 (file)
@@ -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):