Fixed the case where a folder has allow_discussion=False and

conversation.enabled() on a document in this folder returned False
instead of True because of allow_discussion acquisition.

svn path=/plone.app.discussion/trunk/; revision=38835
This commit is contained in:
Vincent Fretin
2010-08-20 11:52:05 +00:00
parent 01bc4a778a
commit 352a517a0a
3 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ class Conversation(Traversable, Persistent, Explicit):
obj = aq_parent(self)
# If discussion is disabled for the object, bail out
obj_flag = getattr(obj, 'allow_discussion', None)
obj_flag = getattr(aq_base(obj), 'allow_discussion', None)
if obj_flag is False:
return False