workflow - 如何访问 Anonymous 的 review_history

标签 workflow plone history review

我在使用 getInfoFor 方法访问 review_history 时遇到问题,示例代码如下:

<div tal:define = "review_history python:wtool.getInfoFor(here, 'review_history', []);
                   review_history python: portal.reverseList(review_history)"
 tal:repeat="items review_history">
 <span tal:content="python: review_history" />
 </div>

当我登录系统时,我可以看到 review_history 变量的内容,但是当我以未注册用户的身份查看时,我看到的只是一个空列表。有没有人遇到过这个问题,有没有办法修改它,以便每个人都可以使用?

最佳答案

您想要做的是调整工作流程,或者更好的是创建自定义工作流程。在此工作流程中,您可以管理内容的权限,并添加允许匿名用户查看对象的历史记录。 (不要忘记将新工作流程应用到您想要向匿名用户提供其历史记录的内容类型。)

看看Creating Workflows in PloneUnderstanding permissions and security在plone.org上。这些页面应该会让您朝着正确的方向前进。

关于workflow - 如何访问 Anonymous 的 review_history,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2273707/

相关文章:

jquery - 如何在 Laravel 中通过 Ajax 提交表单

plugins - 在 CRM 2011 中升级自定义工作流事件程序集时出错

testing - plone 3.3.5 - 使用 last_login_time 和日期范围索引的测试目录查询失败

python - xml-rpc 是否有某种 "response length limit"?

collections - Plone 4 : How to retrieve the item category/tags/keywords inside a page template

history - 在 Web 服务和 SOA 之前出现了什么?

Javascript 获取上次历史记录失败

workflow - 确保 Github Actions 中的工作流程仅触发一次

workflow - 您将AgilePoint用作工作流/BPM引擎有什么经验?

unix - 谁知道unix fork的历史?