Closed (fixed)
Project:
Node Access Control
Version:
5.x-1.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2008 at 11:24 UTC
Updated:
6 Nov 2008 at 09:53 UTC
It might be worth expanding a little bit more in the module description about how it is different/better than the simple_access.module.
Comments
Comment #1
R.Muilwijk commentedLast friday I had to go to the Dutch DrupalJam so I didn't have time to write a nice description. Today I submitted a new description which I think is descriptive enough and shows the difference between simple access and this module.
The new description:
Comment #2
R.Muilwijk commentedComment #3
Phillip Mc commentedThat's actually not correct. *ALL* of the access control modules are based on roles including your Node Access Control module.
If I understand this correctly....
Your Node Access Control module is using roles to restrict access to specific nodes by creating new permissions to control which role can see certain nodes.
The simple_access.module uses roles to restrict access to specific nodes by creating new role groups to control which roles can see certain nodes.
Is that correct?
If it is, what's the advantages over using simple_access.module?
Apologies for all the questions...but I'm just trying to get my head around why another module is needed.
There appears to be a rise in Ubercart type situations recently...i.e. instead of improving existing modules, very similar modules are being launched, which dilutes development and confuses users.
Comment #4
R.Muilwijk commentedYou are not correct. Simple access let's you select 'roles' and make access based on that. There for to give a certain role access to something you have to go to the custom admin page and add this role to a 'access group'.
This module however lets you specify 'permissions'. By doing this you can give access the drupal way by granting permissions on the permissions page.
Comment #5
Phillip Mc commentedDoes that mean you have to go to the admin page for Access Control and add permissions to the roles?
Comment #6
R.Muilwijk commentedThere is one admin page which allows you to dynamically add permissions to hook_perm(). After that you can grant access like you are used to on the permissions page of drupal which has a view for each role but also for all of the roles.
Difference in workflow for creating two nodes with view access for two different roles:
Simple access
- Create a role 'test1' and a role 'test2'
- Make two access groups test1 and test2 at simple access custom admin page
- Make a node with access group test1
- Make a node with access group test2
Content Access / node_privacy_byrole
- Create a role 'test1' and a role 'test2'
- Make a node and specify which roles can access: http://drupal.org/node/257453, http://drupal.org/node/210982
- Make a node and specify which roles can access: http://drupal.org/node/257453, http://drupal.org/node/210982
Node Access Control
- Create a role 'test1' and a role 'test2'
- Create permissions 'view test1' and 'view test2' at custom admin page
- Make a node with view permission on 'view test1'
- Make a node with view permission on 'view test2'
So the difference in steps is not big. However we now have a new role named 'test3' which should get access to both test1 and test2.
Simple Access:
- Goto admin interface of simple access
- Add test3 to group test1 and test2
Content Access / node_privacy_byrole
- Goto the nodes and add the role
Node Access Control
- Goto drupal's permission page and give role 3 permissions to 'view test1' and 'view test2'
So I think the advantages of this module are being able to use drupal's access control system (permissions) and not a custom introduced one. In newer drupal versions (it is going to be ported) permissions are allowed to have descriptions which will even make it easier!
Comment #7
R.Muilwijk commentedComment #8
christefano commentedThanks for the great explanation. I recommend linking to comment #6 from the project page rather than just the issue.
Comment #9
R.Muilwijk commentedI changed the link to comment #6. Thanks
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
socialnicheguru commentedsubscribing
Comment #12
tbee commenteddon't forget toturn off "access content" in admin/user/access, cause the module wouldn't work without this step...