fix that enabled method check for FTI information of the current content object and not only for the "Document" portal_type.

svn path=/plone.app.discussion/trunk/; revision=27889
This commit is contained in:
Timo Stollenwerk
2009-07-07 14:48:39 +00:00
parent 2ad27c3f33
commit 360a758905
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class Conversation(Traversable, Persistent, Explicit):
# Check if discussion is allowed on the content type
portal_type = self.__parent__.portal_type
document_fti = getattr(portal_types, 'Document')
document_fti = getattr(portal_types, obj.portal_type)
if not document_fti.getProperty('allow_discussion'):
# If discussion is not allowed on the content type,
# check if 'allow discussion' is overridden on the content object.