English 中文(简体)
Drupal 6: How do I allow a specific role to edit only content of a specific type?
原标题:

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.





相关问题
REST question: PUT one representation, GET a different one?

Short version of the question: Does "GET" at a particular URI need to match what was "PUT" to that URI? I think not. Here s why: Given that a resource is an abstract thing that is theoretically ...

Sending the variable s content to my mailbox in Python?

I have asked this question here about a Python command that fetches a URL of a web page and stores it in a variable. The first thing that I wanted to know then was whether or not the variable in this ...

SharePoint Multiple New Item Forms

I ve got a custom list with a custom content type. I m aware that when you create a new item you can see a drop down for the different content types on that list which I assume all have their own ...

Downloading pictures/Word documents using ASP.NET

If I put the following code: Response.ContentType = "image/jpeg" Response.AppendHeader("Content-Disposition", "attachment; filename=capitol.jpg") Response.WriteFile(MapPath("capitol.jpg"))...

Detecting custom folder content types in MOSS2007

Given an SPListItem representing a folder, I need to find out whether it has the builtin folder content type, or a custom folder content type (with additional fields). Here is what I do ...

热门标签