don't show non-published comments to anonymous users.
svn path=/plone.app.discussion/trunk/; revision=27567
This commit is contained in:
parent
8a5408c61d
commit
c35b631e36
@ -5,7 +5,8 @@
|
|||||||
canManage view/can_manage;
|
canManage view/can_manage;
|
||||||
replies python:view.get_replies(canManage);
|
replies python:view.get_replies(canManage);
|
||||||
showCommenterImage view/show_commenter_image;
|
showCommenterImage view/show_commenter_image;
|
||||||
errors options/state/getErrors|nothing;"
|
errors options/state/getErrors|nothing;
|
||||||
|
wtool context/@@plone_tools/workflow"
|
||||||
tal:condition="isDiscussionAllowed"
|
tal:condition="isDiscussionAllowed"
|
||||||
i18n:domain="plone">
|
i18n:domain="plone">
|
||||||
|
|
||||||
@ -31,10 +32,12 @@
|
|||||||
creator reply/Creator;
|
creator reply/Creator;
|
||||||
author_home_url python:view.get_commenter_home_url(username=reply.author_username);
|
author_home_url python:view.get_commenter_home_url(username=reply.author_username);
|
||||||
portrait_url python:view.get_commenter_portrait(reply.author_username);
|
portrait_url python:view.get_commenter_portrait(reply.author_username);
|
||||||
anonymous_creator python:creator in ('Anonymous User', '');"
|
anonymous_creator python:creator in ('Anonymous User', '');
|
||||||
|
published python:wtool.getInfoFor(reply, 'review_state') == 'published';"
|
||||||
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
|
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
|
||||||
style string:margin-left: ${depth}em;
|
style string:margin-left: ${depth}em;
|
||||||
id string:${reply/id}">
|
id string:${reply/id}"
|
||||||
|
tal:condition="python:canManage or published and isAnon">
|
||||||
|
|
||||||
<div class="commentImage" tal:condition="showCommenterImage">
|
<div class="commentImage" tal:condition="showCommenterImage">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user