简体   繁体   English

Drupal的6:限制新角色创建特定类别的文章

[英]Drupal 6: restricting a role to create articles to specific categories

Suppose i have the following hierarchy: 假设我具有以下层次结构:

  • Term1 第1学期
    • Term11 第11期
    • Term12 第12期
  • Term2 第二学期
    • Term21 第21学期
    • Term22 第22期

Now i want to allow some roles to be the moderators of articles only in Term11, other roles in Term12 etc. It's easy when allowing them to update/delete, since i use Taxonomy Access Control module. 现在,我想允许某些角色仅在Term11中担任文章的主持人,在Term12中担任其他角色,等等。由于我使用分类法访问控制模块,因此允许他们更轻松地进行更新/删除。 But when i want to allow role to create articles it's not so easy because on an article creation page i can select any category. 但是,当我要允许角色创建文章时,这并不容易,因为在文章创建页面上,我可以选择任何类别。 But i want to show only that categories in which a role can create articles. 但我只想显示角色可以创建文章的类别。

is it possible to do? 有可能吗?

Take a look at Taxonomy Term Permissions which "allows taxonomy administrators the ability to restrict setting individual terms on nodes by user or role". 看一下分类标准术语权限 ,它“允许分类标准管理员限制按用户或角色在节点上设置单个术语的能力”。 I don't know if it prevents the display of the taxonomy terms in a list (if it doesn't, that sounds like a good feature request), though it seems to at least disallow setting of certain terms on a node. 我不知道它是否阻止了分类术语在列表中的显示(如果不是,那听起来像是一个很好的功能请求),尽管它似乎至少不允许在节点上设置某些术语。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM