Closed (fixed)
Project:
Book access
Version:
6.x-1.0-rc5
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2009 at 03:09 UTC
Updated:
25 May 2010 at 01:40 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedIt would also be useful if it would be possible to change the priority of the access rules added by the module to resolve conflicts with other similar modules. I changed the title to reflect the extended feature.
Comment #2
jaypanUnfortunately, access modules all conflict due to the nature of Drupal's access system. Any module that grants permission takes priority over any module that denies permission.
Comment #3
Anonymous (not verified) commentedDrupal core code allows modules to define the priority of a node access permission.
Book access uses a constant for that field, which makes the field useless; other access modules allow to change the priority using an option, and I take there is a reason to do so.
There are then other settings that could be added, and that could alter the user interface of the module.
Comment #4
jaypanEven when priority is set, any module that gives access takes priority over one that doesn't give access. This is because db_rewrite_sql does a join on the node_access table, and looks for a value of one. So even if another module has a value of zero (denying access), the join finds the value of one (give access), and the value of zero is ignored. This is why it's best to not use multiple access modules - the results can be unpredictable.
Comment #5
Anonymous (not verified) commentedThat is true; modules can just grant access, and not remove it. The settings to change the priority would not have any sense, in such case.
I had in mind an option to disable the integration with CheckAll, but considering that module has stable code, the option is probably not necessary.
Thanks for your help.
Comment #6
Anonymous (not verified) commentedI added the settings for the default access values for both the new roles, and the new users.
Thanks for your report, and help.
Comment #7
jaypanThank you! That's great.