根据分类和内容类型向角色授予编辑权限
我正在寻找一种根据节点的内容类型及其分类来管理 Drupal 6 节点上的编辑权限的方法。
例如,我希望能够允许角色编辑分类法 1 的故事和分类法 2 的页面,但不允许编辑分类法 2 的故事和分类法 1 的页面。
我知道如何按内容类型或分类(使用分类访问权限模块)限制访问,但我无法设法授予这两个条件的权限。我非常感谢模块建议或有关如何以编程方式制作它的一些想法。
预先感谢您的任何提示!
I'm looking for a way to manage edit permissions on Drupal 6 nodes based on the content-type of the node and on his taxonomy.
For example, I'd like to be able to allow a role to edit stories of taxonomy1 and pages of taxonomy2 but not stories of taxonomy2 and pages of taxonomy1.
I know how to restrict access by content type or by taxonomy (with the taxonomy access permissions module), but I can't manage to grant permissions on both of these criteria. I would greatly appreciate a module suggestion or some ideas on how to make it programmatically.
Thanks in advance for any hints !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是确切的代码。遵循逻辑。尝试这样的事情,它应该可以工作。
Not the exact code. Follow the logic. Try something like this and it should work.