diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 800fda7..24ea7f6 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -25,7 +25,7 @@
+ tal:condition="has_replies">
@@ -94,7 +94,7 @@ action="" method="post" style="display: inline;" - tal:condition="view/can_manage" + tal:condition="canManage" tal:attributes="action string:${reply/absolute_url}/@@moderate-delete-comment"> @@ -129,7 +130,7 @@
+ tal:condition="python:isDiscussionAllowed and (isAnon and not isAnonymousDiscussionAllowed)">
-
+
diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 9443e0c..3903ba8 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -223,7 +223,7 @@ class CommentsViewlet(ViewletBase): def has_replies(self, workflow_actions=False): """Returns true if there are replies. """ - if self.get_replies(workflow_actions): + if self.get_replies(workflow_actions) is not None: try: self.get_replies(workflow_actions).next() return True