how to restrict viewing CCK nodes to a role?

enky - January 27, 2007 - 06:57

hi,

i have a cck node type 'paper', users can submit papers, and, only the 'teacher' role should see the paper nodes.
but, currenly cck has permission for create, edit and edit own nodes only.

so, how to how to restrict viewing CCK nodes to a role?

thanks
enky

Theme the content type

chelah - January 27, 2007 - 09:06

One way is to theme the content type where different role get to see different message. Contemplate module may help.

Try out the CCK Field Permissions module

c2uk - January 27, 2007 - 11:11

it seems 'cck field

enky - January 27, 2007 - 14:29

it seems 'cck field permissions' module can't control access permissions to title and body field.
other fields are controlled.

using the nodetemplate, i can control all the fields, except the title.

is there any other way to hide cck nodes from a role ?

enky

...

chelah - January 27, 2007 - 16:01

How about issue a feature request to the cck module developers?

issue submitted,

enky - January 27, 2007 - 16:35

so, how to how to restrict

VeryMisunderstood - January 27, 2007 - 16:45

so, how to how to restrict viewing CCK nodes to a role?

Submit all of these types of nodes to one taxonomy term and then you can use taxonomy_access controls.

there are other ways you could control access as well, having a look at the access modules may prove fruitful.

 
 

Drupal is a registered trademark of Dries Buytaert.