基于组的复杂权限建模

发布于 2024-12-18 05:25:29 字数 316 浏览 2 评论 0原文

我正在尝试在 Plone 中对以下权限进行建模,并想知道我应该采取的最佳方法:

第 1 组 - 高级成员 第 2 组 - 会员

第 3 组 - 高级会员 第 2 组 - 成员

  1. 该组中的所有成员都不应能够查看与他们关联的任何内容项。

  2. 高级成员应该能够查看和修改其子组内的内容项,但不应能够查看彼此的内容项 - 这些内容项都有一个 user_id 字段来指示内容属于谁。

  3. 子群组中的成员不应能够查看与高级成员或彼此的内容项相关的内容。

谢谢

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

  1. All the members in the groups shouldn't be able to view any content item associated with them.

  2. 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.

  3. Members in sub groups should not be able to view content associated with senior members nor each others content items.

Thank You

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

影子的影子 2024-12-25 05:25:29

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

黑白记忆 2024-12-25 05:25:29

尝试使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文