]> git.openstreetmap.org Git - osqa.git/commitdiff
Adding method that checks if the user has the ability (permission) to convert commen...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 27 Dec 2010 18:14:22 +0000 (18:14 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 27 Dec 2010 18:14:22 +0000 (18:14 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@632 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/user.py

index e3c97fa90d6bf4f61cd30d41bdc432a95d2652fc..e2f63c7bb3a291ba5a19de2d08d0aac168b702e7 100644 (file)
@@ -278,7 +278,7 @@ class User(BaseModel, DjangoUser):
 
     @true_if_is_super_or_staff
     def can_convert_comment_to_answer(self, comment):
-        return self == comment.author or self.reputation >= int(settings.REP_TO_COMMENTS_TO_ANSWERS)
+        return self == comment.author or self.reputation >= int(settings.REP_TO_CONVERT_COMMENTS_TO_ANSWERS)
 
     def can_convert_to_comment(self, answer):
         return (not answer.marked) and (self.is_superuser or self.is_staff or answer.author == self or self.reputation >= int