I admit to being new to the world of Drupal and likely as not I'm in error, however...

I have a new Drupal 6.3 install and want to use Node Privacy Byrole to allow anonymous users access only to my 'front' page. My understanding is NPBR should be able to do this, but maybe I don't understand.

Am I correct in believing that NPBR overrides the permission settings I make in Administer >> User management >> Permissions? So if I disallow Anonymous users to view all content, and then enable Anonymous users to view a node, that node should be seen by those users.

But that doesn't work for me. In fact everything the poster in http://drupal.org/node/31143 says seems to be true for me. Naturally I have tried the suggestions made in that thread, but I don't have Taxonomy Access Control installed, I have also rebuilt the permissions.

Am I misunderstanding this module, or doing something wrong?

Thanks for any help or advice.

Comments

sjz’s picture

Component: Documentation » Code
Category: support » bug

I have the exact same problem. I'm wondering if there are conflicts with other "security" or "privacy" modules. I haven't had the time (yet) to test this but I have:

Using Drupal 6.5

Modules

  • CCK Content Permissions
  • Protected Node
  • Coherent Access

I'm working on eliminating the need for all of these but it's not quite as straightforward based on requirements.

Steps I Used

  1. Activated the module
  2. Assigned Access to all roles but "anonymous" on a "page" node
  3. Logged out, cleared cache and cookies
  4. ... am still able to access the page when *not* logged-in!

I have read the documentation and the am current on all modules at this point.

and am still able to see the "protected" page even though I'm not logged-in.

MGN’s picture

I am using node privacy by role to do this and it is working fine in Drupal 6.4.

Am I correct in believing that NPBR overrides the permission settings I make in Administer >> User management >> Permissions? So if I disallow Anonymous users to view all content, and then enable Anonymous users to view a node, that node should be seen by those users.

I actually do the opposite. I Give all users (including anonymous) permission to access content (Permissions >> node module >> access content checked for anonymous ). On nodes that I do not want anonymous (or any other role) to view, I leave the view/edit permissions on the node (from NPBR) unchecked. To grant permission you have to check the box.

@sjz: Just to clarify...when you say you "cleared the cache and the cookies," did you do this from Administer >> site configuration >> performance >> clear cached data (i have seen that some people get this confused with clearing their browser cache)? I am also using coherent access and not having any conflicts (but see #317413: Misc problems with coherent access 6.x-1.0 for patch to fix some problems). You might try disabling the other content access modules that you are using and make sure each one works as expected without the others. This may help identify the problem.

sjz’s picture

@mgn - It was "Coherent Access" at the root of the problem. Things work as intended now.

Thank you very much for catching that!

cyu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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