hi,

i have a cck node type 'paper', users can submit papers, and, only the 'teacher' role should see the paper nodes for evaluation.
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

Comments

quicksketch’s picture

Category: feature » support

There are plenty of modules which allow you to restrict viewing certain nodes based on a variety of criteria.

You might try either of these:
http://drupal.org/project/simple_access
http://drupal.org/project/tac_lite

Or just browse the entire list or access modules: http://drupal.org/project/Modules/category/74

Unfortunately, I don't know of a plug-in system for restricting access to an entire content type all at once. Most systems are based on taxonomy or on a per-node basis.

What I'd suggest is you make a taxonomy vocabulary such as 'Access' and make two terms: 'Teachers only' and 'Public'. Then apply that taxonomy to the paper type. Now you can make papers (or any other content type) public or private! Make sure you set the appropriate permissions in the tac_lite module, which provides the actual access control.

enky’s picture

isn't the taxonomy access control (TAC) module bulky just to control viewing the cck nodes?

i think it's easier to have a new access 'view cck node' permission added to the cck module...

thanks,
enky

yched’s picture

Project: Content Construction Kit (CCK) » Drupal core
Version: 5.x-1.2 » 6.x-dev
Component: content.module » node.module

CCK no longer defines content types in Drupal 5.
So this question is not specific to CCK, but applies to all content types defined by node.module.
And, yes, I do think that the decision was made to defer viewing permissions to access modules like those quicksketch mentions

emackn’s picture

I had a similar question
http://drupal.org/node/121395

ricabrantes’s picture

Status: Active » Closed (fixed)

Closed, no activity..