基于组的复杂权限建模
我正在尝试在 Plone 中对以下权限进行建模,并想知道我应该采取的最佳方法:
第 1 组 - 高级成员 第 2 组 - 会员
第 3 组 - 高级会员 第 2 组 - 成员
该组中的所有成员都不应能够查看与他们关联的任何内容项。
高级成员应该能够查看和修改其子组内的内容项,但不应能够查看彼此的内容项 - 这些内容项都有一个 user_id 字段来指示内容属于谁。
子群组中的成员不应能够查看与高级成员或彼此的内容项相关的内容。
谢谢
I am trying to model the following permissions in Plone and would like to know the best approach I should take:
Group 1 - Senior members
Group 2 - members
Group 3 - Senior members
Group 2 - members
All the members in the groups shouldn't be able to view any content item associated with them.
Senior members should be able to view and amend content items within their sub groups but should not be able to view each others content items - these content items all have a user_id field to indicate who the content belongs.
Members in sub groups should not be able to view content associated with senior members nor each others content items.
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您在这里会得到与邮件列表帖子相同的答案: http://plone.293351.n2.nabble.com/Implementing-bespoke-access-control-levels-in-Plone-td6986879.html
您需要编写自己的本地使用 http://pypi.python.org/pypi/borg.localrole。也许看看 http://pypi.python.org/pypi/borg.project 以及介绍它的文章: http://www.martinaspeli.net/articles/developing-with-plone-3-borg.localrole-and
I think you're going to get the same answers here as you got with your mailing list post: http://plone.293351.n2.nabble.com/Implementing-bespoke-access-control-levels-in-Plone-td6986879.html
You'll need to write your own local role adapter using http://pypi.python.org/pypi/borg.localrole. Perhaps take a look at http://pypi.python.org/pypi/borg.project as well and the article introducing it: http://www.martinaspeli.net/articles/developing-with-plone-3-borg.localrole-and
尝试使用 Collective.subscribable 部分。我还没有完全测试过它,但它似乎正在为我做这项工作。我选择了 borg.localrole 路线,这是一个很大的痛苦,而且我对我的解决方案一直不满意。
Try using collective.subscribable sections. I haven't fully tested it yet, but it seems to be doing the job for me. I went the borg.localrole route, and it was a major pain, and I was never happy with my solution.