]> git.openstreetmap.org Git - osqa.git/commitdiff
Anonymous users cannot convert answers to question, special method added to the Anony...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 28 Dec 2010 12:12:21 +0000 (12:12 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 28 Dec 2010 12:12:21 +0000 (12:12 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@645 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/user.py

index 1e9ffd646d34e7249792cae07b2fa1125c346653..8f2ccd015e27cef3846edc944fa0f3fe86e84708 100644 (file)
@@ -55,6 +55,9 @@ class AnonymousUser(DjangoAnonymousUser):
     def can_convert_to_comment(self, answer):
         return False
     
+    def can_convert_to_question(self, answer):
+        return False
+    
     def can_convert_comment_to_answer(self, comment):
         return False