I have installed Drupal 5.0 RC1 locally and having the following problem.
Anonymous users aren't able to access node content, they see error "Access Denied" from Drupal where supposed to be node content.
Strange, this problem appeared only after I have played a bit and added 4th page. Looking to database in node_access table I saw 3 records for 3 of my (now 12) pages. And I tried to edit the page, simply go edit, then change nothing and click submit, and I see the row for this page in node_access is disappeared.
Strange. After that I did temporary solution, in node.module near the line 2650, after
$access = module_invoke($module, 'access', $op, $node);
if (!is_null($access)) {
return $access;
}I've added
if (user_access('access content') && ($module=="node_content") && ($op=="view")) return TRUE;
But I know this solution can conflict if you set specific permission per node (btw, where can I do that?). So I want to submit this bug report, as I think this is very important issue.
Comments
Comment #1
webchickIt sounds like you're using some kind of node access module (tac_lite, og, etc.) as Drupal core by default will only have one entry in the node_access table. I suggest you re-file under whatever node access module you are using.
Comment #2
slava-1 commentedI have Organic Groups installed, but it is disabled at the moment.
All I have enabled are few modules from core-optional group + FCKeditor. I tried to disable everything that is not default. Didn't helped though.
Comment #3
webchickMoving here... I haven't played with OG in long enough that I'm not sure where to start troubleshooting this, but I do know that OG must be interacting here somehow; this is not a core bug.
Comment #4
moshe weitzman commentedsee admin/content/node-settings. if you don't see build option at top, enable og and then go to admin/og/og, click on disable access control, and then try rebuild.
Comment #5
slava-1 commentedI have enabled access control for OG, then disabled it.
It helped, thanks... But there is something wrong with og though.
Comment #6
beginner commented@slava: yes, I believe there is something wrong, too.
See this issue:
http://drupal.org/node/107289
I post that here, because I think those two issues are related.
Comment #7
(not verified) commented