Node privacy by role: node view and edit permissions

The node privacy by role module allows users, when creating or editing a post, to select which roles of users on a site will have view, edit, or delete permissions for the node. Community leaders frequently want to give permissions to roles to create and manage content for a site. The ability to publish information, that would traditionally be hoarded, allows communities to educate each other while still preserving the value of knowledge.

The node privacy by-role permissions are set by users for their nodes. If the node privacy by role module is disabled, the default permissions scheme will be in effect again, in which all users have view permissions for all nodes. However, if the module is re-enabled, the node-by-node permissions that were in place during the previous period in which the module was enabled will take effect again. Using the Uninstall option will make the permission reversal permanent.

Roles given edit permissions are automatically given view permissions even if the user tries to give edit permissions to a particular role, but not view permissions.

Before Drupal 4.7, you must explicitly enable or disable the module at administer >> settings >> node_privacy_byrole.

You can

Testing Functionality of Node Privacy by Role

amanda - July 17, 2006 - 01:48

I just went through double checking a thing I've never quite grasped, so I thought I'd share. Basically, the module, node_privacy_by_role can only extend privileges to users who already have permission to "access content"

For instance, if your roles include:
group0, group1, group2, group3

The site's current set up was such that permission to:

access content was granted to roles: group0, group1, group2
access node/45: group0, group2, group3

Then users who are only in group3 (lacks "access content") and users who are only in group1 (denied in node_privacy_by_role) will both be locked out of viewing the node. Only users who have both "access content" permission set in the access control settings and who have been granted view privileges for that specific node will be able to see it.

 
 

Drupal is a registered trademark of Dries Buytaert.