plone.app.discussion/plone/app/discussion/profiles/default/actions.xml
Timo Stollenwerk f2f70e908b show "moderate comments" site action only when comment_review_workflow is enabled for comments.
svn path=/plone.app.discussion/trunk/; revision=27791
2009-07-03 09:03:19 +00:00

17 lines
794 B
XML

<?xml version="1.0"?>
<object name="portal_actions" xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<object name="site_actions">
<object name="review-comments" meta_type="CMF Action" i18n:domain="plone.app.discussion">
<property name="title" i18n:translate="">Moderate comments</property>
<property name="description" i18n:translate=""></property>
<property name="url_expr">string:$portal_url/@@moderate-comments</property>
<property name="icon_expr"></property>
<property name="available_expr">python: portal.portal_workflow.getChainForPortalType('Discussion Item') == ('comment_review_workflow',)</property>
<property name="permissions">
<element value="Review comments"/>
</property>
<property name="visible">True</property>
</object>
</object>
</object>