Default values and bringin old stuff up to date

s_oneill - June 11, 2006 - 13:01
Project:Nodeperm_role
Version:HEAD
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi there,
great module - one thing that would be nice though is the option to choose a default value for roles allowed to view and edit content. Currently, it seems the default is to only allow the submitting user (and admin) to edit and each node then must be manually set to something else if need be.

Also, I have a site with quite a few nodes already, and would like them all to be editable by all autheticated users - a simple (?) sql to update all existing nodes to a some predefined permission would be nice.

Hope this is useful to you ...

Kind regards
Soren ONeill

#1

robb - June 11, 2006 - 15:18

A good way to handle the first issue is to use the Workflow module. It allows actions to be defined and those actions include changing the node permissions controlled by nodeperm_role.

The second issue can be handled by setting the the access control 'Node/Administer nodes' for authenticated users. I dislike this as it grants TOO much control. Another alternative is to use na_multi to allow custom access control templates. This is a WEIGHTY module and may not be suitable for your situation.

http://www.lab.canfield.com/projects/na_multi

The access control template would look something like this for the update permission. It says that if nodeperm_role allows access OR the user is a member of 'authenticated' allow updates. See the na_multi tutorial including witht he mdouel for details,

nodeperm_role OR rolein('authenticated')

 
 

Drupal is a registered trademark of Dries Buytaert.