How to manage access to nodes in Drupal
Submitted by drupal_admin on Wed, 2006-05-31 12:14
HOW TO ASSIGN ACCESS TO NODES IN DRUPAL?
Suppose we want to fulfill the following requirement :
- Create a Menu of Project Control.
- The pages in this menu will be viewable by Shuvam, Kishan, Raghu and Shraddha.
- The pages in this menu will be editable only by Shuvam.
Please refer to the FAQ section for definition of roles and groups before proceeding.Â
To carry out the above task the following requires to be done
- Create a role "Project Control" and assign access to create menus, create pages, access content as per the requirement.
- Assign users Shuvam, Raghu, Kishan, Shraddha the role of "Project Control".
- Create a group "Project Control Group" and assign the role "Project Control" to it.Â
- The user Shuvam should create a page and click on the opton of Access.
- This access control pertains to viewability and editability.
- In the view access control Shuvam can choose which groups can view this node. He can only set
permissions for the groups he is a member of i.e. the groups who have been assigned roles that have him as a member. - Not choosing any group name in view access would result in global viewability.
- In the current scenario view access control should have the group Project Control selected.
- In the editable access control Shuvam can choose which groups can additionaly edit this node. By additional I mean that apart from the author (Shuvam in this case) and the admin who else can edit this node?
- Not choosing any group name would result in editable access given only to the author and the admin.
- In the current scenario Shuvam should not choose any options as the right to editability should rest only with him (and the admin by default).
- Submit the Node.Â
»
- Login to post comments
- Printer-friendly version
- Send to friend