fix that conversation.enabled wasn't called. evilbungle fix.

svn path=/plone.app.discussion/trunk/; revision=29432
This commit is contained in:
Timo Stollenwerk 2009-08-28 11:39:02 +00:00
parent 1c3aa5e9b5
commit f7f10a5572
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ class CommentsViewlet(ViewletBase, layout.FormWrapper):
def is_discussion_allowed(self):
context = aq_inner(self.context)
conversation = IConversation(context)
return conversation.enabled
return conversation.enabled()
def get_replies(self, workflow_actions=False):
context = aq_inner(self.context)