access denied issue

eboyd16 - June 13, 2008 - 13:47
Project:Taxonomy Access Control
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:cpugeniusmv
Status:closed
Description

When TAC is disabled in the modules menu this issue can start. When an edit is done and submitted on a node the user is sent to the front page and the node that was edited is no longer accessible, you get "access denied". The entry for the node in the node_access tables has been removed and the only users that can view the content are those with administer node authority.

Here is the comments about the issue http://drupal.org/node/269761

#1

cpugeniusmv - July 29, 2008 - 18:08
Version:5.x-1.1» 5.x-2.x-dev
Assigned to:Anonymous» cpugeniusmv

I took a look at the code and it looks like it's rebuilding the node_access table when it's supposed to.

I'll set up 5.x-1.x-dev and 5.x-2.x-dev in a sandbox and see if I can reproduce it.

#2

cpugeniusmv - August 4, 2008 - 19:05

OK, I am able to reproduce this with 5.x-2.x-dev on Drupal 5.9.

Basically what happens is that taxonomy_access_disable gets called and that calls node_access_rebuild, but node_access_rebuild doesn't realize that TAC is being disabled and doesn't insert the default row back into the node_access table.

Fixed in CVS for 5.x-2.x-dev and 5.x-1.x-dev.

#3

cpugeniusmv - August 4, 2008 - 19:05
Status:active» fixed

#4

Anonymous (not verified) - August 18, 2008 - 19:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.