开发者

Drupal 6: How do I allow a specific role to edit only content of a specific type?

开发者 https://www.devze.com 2022-12-14 14:29 出处:网络
On a Drupal 6 site, I have a \'moderator\' role, who worka with an \'article\' content type. I want the moderators to be able to see the list of published/unpublished articles, and have the option to

On a Drupal 6 site, I have a 'moderator' role, who worka with an 'article' content type.

I want the moderators to be able to see the list of published/unpublished articles, and have the option to edit the articles (and change their 'published' status).

I do not want, however,开发者_运维知识库 for moderators to be able to edit (or see the list of) any other type of content.

If I give moderators the permission to 'administer nodes' I cannot stop them from editing other content types. If I remove that permission, they cannot access the content list (which is crucial for them).

Any ideas?


You might want to check out the Views Bulk Operations Module (http://drupal.org/project/views_bulk_operations). You should be able to use this module to build a custom view that displays only the content types you want the 'moderator' role to edit.


If you all your content types are created with CCK you can unset each content type's permissions for moderators. If not, I'd recommend you do create them in CCK :)


you definitely don't want to give them "administer nodes" permissions since it's a huge can of worms. if the nodes are unpublished you'll need to use the views module to get listings that will let them see the nodes.

that said unless the node type is one created by a specific contrib module you should be able to set the permissions on a per-role basis. if not you might look at using a node access module to control permissions.

0

精彩评论

暂无评论...
验证码 换一张
取 消