From 1f6958cb1603169dcbe231181492a4b3095922bc Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 28 Dec 2010 12:12:21 +0000 Subject: [PATCH] Anonymous users cannot convert answers to question, special method added to the AnonymousUser class. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@645 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/models/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forum/models/user.py b/forum/models/user.py index 1e9ffd6..8f2ccd0 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -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 -- 2.39.5