Newbie: Can't get either privacy_by_node or simple_access to work

Andrupal - February 20, 2006 - 02:55

I've tried both privacy_by_node and simple_access and neither will allow me to actually limit node access to specific user roles.

They look great on the menus, and appear to be accepting all of my inputs without error, but all nodes, "granted" or "non-granted" continue to show up for all users that have node_access enabled. Disabling node_access for these users doesn't let anyone see anything.

In the 8 hours I've been at this:

Things I've tried to no avail:

  • deleting users, user-roles, and rebuilding.
  • "repairing" my databases in mySQLadmin...which they didn't appear to need.
  • deactivating and reactivating the modules

I have a hunch there's a very simple explanation for this...like another module is interfering. (Some have reported OG gets in the way of these...but I don't see it amongst my modules.)

Please help.

Newbie Update: simple access works only with user presets

Andrupal - February 20, 2006 - 04:14

Rather than define my own user roles, I switched everyone to admin user and authenticated user and the node access appears to follow the rules...

The problem is I need at least three non-anonymous user access levels...

Nevermind...role-specific access still not working

Andrupal - February 20, 2006 - 05:36

The above, apparent, resolution was just a confusion.

My "restricted" nodes are visible to anyone who is marked able to "view content" in the regular nodes module. The simple access module appears to be doing nothing at all.

Any help would be much appreciated

Resolved: Reinstalled Drupal

Andrupal - February 20, 2006 - 15:51

I think sort of insertion or deletion error had occurred in the node_access data table...but I'm still not sure. I deleted Drupal and reinstalled, adding in the simple access module up front, and it works!

I've also added the node_access-package, which enables access grants to be set using a combination of criteria from multiple access modules (eg. taxonomy_access, simple_access, node_access, etc.) and things still appear peachy.

Steep learning curve is right!

correct forum

greggles - February 21, 2006 - 03:48

It's great that you found a resolution to your problem - in the future it would help to use one of the Support Forums http://drupal.org/forum/18

It may seem confusing, but the "How Do I" is probalby the best place since that's for people who have Drupal installed and are curious "how do I get privacy_by_node to work" or similar

--
Knaddison Family Blog

The same problem!

_Troy_ - October 2, 2006 - 04:17

The same problem! simple_access and privacy_by_role just don't work.
I'm trying to give 'view' access rights to the group, but everyone can see the node. I can't just reinstall Drupal, may be there are some other way? :(

RussianWebStudio: improving the web

Same again

greymoth - April 9, 2008 - 05:37

I was having this same maddening problem, but I eventually found the answer here:

http://drupal.org/node/218527#comment-720019

The permissions have not been rebuilt and by default Drupal is configured to allow all users to access all nodes.

To fix this issue you need to rebuild the permissions by going to administer > content management > post settings and at the top will be a new option to rebuild permissions.

The install.txt file really needs to be updated IMO. Not that I'm complaining: this module does just what I need!!

 
 

Drupal is a registered trademark of Dries Buytaert.