Download & Extend

anonymous user not granted access on per node bases

Project:Nodeaccess
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (cannot reproduce)

Issue Summary

I'm using Drupal 6.12, nodeaccess 6.x.1.3

On the main Drupal User permissions page, the anonymous user has no access granted to anything.

I have the grant tab enabled for the two content types, admin has permission to all of nodeaccess

I login as admin, select the grant tab for the homepage(node/3) and grant view access to anonymous , save settings.

Logout, and navigate to home page. I get the following error

Access denied
You are not authorized to access this page.

not sure what I'm doing wrong...

Scott

Comments

#1

I'm having the same problem. Nodes that have anonymous_user view access checked still result in a 'not authorized' warning page when not logged in. I can't even get anonymous users to the user login page!

#2

I can't even get anonymous users to the user login page!

That problem is not caused by this module, which simply handle the access permission for the content types; it doesn't handle any block, and in particular the log in block.

#3

Actually, it is caused by this module. No problem when I de-activate it. Problem when I activate it.

It's not a problem with the individual blocks - it's a problem with ALL of my nodes - none of them are accessible to anonymous users, despite the permissions being set for view access for anonymous users. The frontpage shows up and works fine - and I can log in through the login block. I just can't access any other nodes, including the user sign-up node, unless I'm already logged in.

Turns out, I can only access nodes if I'm logged in as the administrator - I can't access any nodes regardless of the permissions I grant.
Basically, this issue makes the module useless.

#4

If the front page is not a node, then the user can log in; that is what I mean.
The module can be buggy, but the anonymous user cannot log in only if the front page is a node; it's something that is generically true when the module is enabled.

#5

I see, okay - they can get to the login page, but anonymous users can't get anywhere else. I want anonymous users to be able to access some content, but not all.

#6

searching the same...

#7

Any news on what's causing this?
I also seem to be unable to get anonymous users to access parts of my site even though I haven granted them access to those pages.

#8

This is a probably a stupid question, but did you remember to rebuild the permissions?
There is a link at the top of the page, after you click "Save Grants" settings on the admin/user/nodeaccess page:

Grants saved.
The content access permissions need to be rebuilt. Please visit this page ( admin/content/node-settings/rebuild ).

#9

> I also seem to be unable to get anonymous users to access parts of my site even though I haven granted them access to those pages.

A similar problem bytes me occasionally on one site, and I have months ago disabled and uninstalled the module, and rebuilt content access permissions, of course. Simply rebuilding content access permissions at ./admin/content/node-settings/rebuild does not solve this issue for me.

Usually I have to (re-) install and (re-) enable the "Nodeaccess" module, then rebuild content access permissions, then disable and uninstall the module again, and rebuild content access permissions once more. This works for a few months, then parts of the site become inaccessible for anonymous users again (usually the more recent nodes). Problems for anonymous users to access parts of the contents I have not experienced as long as the "Nodeaccess" module is installed and enabled; the problems occur when the module is being deinstalled.

I've never figured out what exactly is causing this, but somehow uninstalling "Nodeaccess" seems not to really clean up the content access permissions fully. There's also an long standing issue about this: #370649: Uninstallation does not delete tables in database.

Greetings, -asb

#10

This is working fine for me on a clean install. If anyone is experiencing this, if you could attach a database dump here and list the drupal version and any 3rd party modules installed, I can look into it more.

#11

I have also been affected by this bug, and had to uninstall the Node Access module. Once I did that, my anonymous users were able to access the content again.

#12

When I installed Nodeaccess for testing, certain pages were only available to anonymous users. I assumed that all my nodes were authored by the 'admin' user, but it turned out that these pages (created by Devel generate) had no author, and the author were therefore seen as being 'anonymous'. Once I realized that, the module behaved as expected.

ebeyrent: Are you using Content Access and ACL in stead, or how do you hide nodes on a user basis?

#13

@ressa - We built a custom node access module based on taxonomy that extends the Module Grants module. However, we added a new feature that had simple node access requirements and didn't fit into this method, which is why we ended up trying the nodeaccess module.

#14

@ebeyrent - Thanks! I will look into Content Access and ACL then, and see if it might work... if not I guess I will take the chance, and go ahead with Nodeaccess. I might be lucky 8o)

EDIT: Content Access and ACL seems to work fine, at least the preliminary tests on localhost worked out well.

Also, Content Access can override the access setting per content type from a node's Access control settings , and it doesn't require the permissions to be rebuilt all the time: http://drupal.org/node/666614#comment-2553802

#15

Status:active» closed (cannot reproduce)

#16

Having the same issues.
Anonymous user cannot access the nodes although permitted via node access to do so. The Debug mode of the da module also showed anonymous users could access but not. access denied.:(
Disabling and deleting the module caused several menu items which were connected to the anonymous nodes to disappear.
Had to rebuild the menu links to the pages.
It seems the module is quite buggy ...