nodeaccess

debtman7 - September 26, 2006 - 14:28

Nodeaccess is a drupal access control module which provides per node access control. Users with the 'grant node permissions' access control will have a grant tab on node pages which allows them to grant access to that node by user or role. Administrators can set default access controls per page type, and also define which roles are available to grant permissions on the node grants tab.

1) simple access only deals with groups of roles. nodeaccess deals with users and roles.
2) simple access only deals with viewing nodes. nodeaccess deals with editing and deleting as well.

The upshot is, this module allows you to do things like 'node 123 can be viewed by authenticated users and edited by admin users and joeuser'. As an added bonus, update and delete permissions are seperated, so you can make sure users with edit permissions cannot accidentally delete pages.

5.x Version Information

The 5.x version should work well, however I'd like more feedback before declaring it stable. It's always a good idea to try it out on a development system first.

Update 4/27/07: Fixed wrong function call on update. Added hook_node_type to handle node type deletions and name changes, as well as set defaults when a new node type is created. Default permissions on a new install have changed, now if you install this module for the first time it will default to granting view access for authenticated and anonymous users, and full access for the node author. Also fixed bug that prevented default perms from working.

Update 4/12/07: Added new admin settings to define seperate permissions for the node author, to prevent them from locking themselves out of a node unless you want them to do so. Also changed role listings to be sorted alphabetically.

Update 3/1/07: I've added a preference to the 5.x version to give node grants a priority. This is really only useful if you are using multple access control modules. Let's assume you want to use taxonomy access control to set default access by vocab/term. You set it up so that some users can view certain terms. Ok all good. Now let's say you need to make one page in that term private, with difference permissions than TAC gives. Previously if you tried this with nodeaccess, it wouldn't work since drupal only grants permissions, and it only takes on grant to give permission. Now, however, by checking the priority option for nodeaccess, it will override the TAC grants for any node that has it's own grants set (note, this only applies to grants to individual nodes, not to the default grants set in nodeaccess settings).

Credit goes to chx for the original code

Releases

Official releasesDateSizeLinksStatus
4.7.x-1.12007-Feb-0110.95 KBRecommended for 4.7.xThis is currently the recommended release for 4.7.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2008-Jan-0415.96 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
4.7.x-1.x-dev2007-Feb-0210.95 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.