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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user