Although I give a role "Permissions for permissions", I'm not able to see the View/Edit Permissions blocks while creating content (only the administrator is able to see these blocks). I tried all possible options, but couldn't get this working.

My Drupal version is 4.6.0.

Comments

ankur’s picture

I could not reproduce the error. For now, I'd say update to the most recent version of the module, as it has seen some changes in the last few days AND MAKE SURE you run the upgrade script!!!

The upgrade script is important because there were some variable name changes that affect the variables that determine whether a particular role should be seeing the permissions settings or not...

Instructions for using the script are available in the CVS as well as the file itself:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...

If you're still having these problems, please refresh this thread with another comment.

-Ankur

zhasper’s picture

I've got the same problem, I think.

Unless I'm logged in as Admin, I can't see the "Privacy" options for a node.

I've tried to assign the permission to see/change these permissions to a user: but I can't find any permissions that seem to be relevant in the "Access Control" page.

What should I be looking for?

I have Drupal 4.6.0, with the version of the module downloaded from http://drupal.org/project/node_privacy_byrole a few minutes ago (and yes, I've run the upgrade script in case that was a problem, but still no luck)

ankur’s picture

Hah. This should be broken out into a seperate task of adding something to the help hook to explain how to use it.

For each node type, you can configure default values for which roles get to see nodes of this type, default values for which roles get to edit nodes of this type, and which roles get to change from these default values within this node-type on an nid by nid basis...

To access these settings for, say blogs, you should go to q=admin/node/configure/types

Here, you'll see a listing of the different node types along with a "configure" link. To configure these NPBR settings for blogs, click on "configure" next to "blog" and this will take you to a page where you can change the NPBR settings for blogs as well as node-type-specific settings offered by other modules.

I'll add this information to the help hook soon in some readable form....

-Ankur

zhasper’s picture

Ah! Thanks!

Now I can find the "Permissions for Permissions" setting.

However: I've set "Moderatorss" to have "Permissions for Permissions", but my plain user account (which is in the Moderators group) still can't change these settings - I still have to be admin to change them.

This applies both to existing content, and also to the form when I try to create new content

(Before you ask - yes, it was for "Page" that I changed the setting, and on a new "Page" that it was tested.)

Perhaps this information could be put in the README?

inspiredbylife’s picture

Ankur, looks like I'm having the latest version of NPBR module (as I see no difference between the one installed and the version in CVS). And since my installation of drupal was a fresh one do I still need to run the upgrade script?

ankur’s picture

Assigned: Unassigned » ankur

Whoa... I was able to replicate this bug... For I second I was thinking maybe you folks have all the settings wrong :-)

Anyway, I'll look into this right now.

-Ankur

ankur’s picture

This was a one line fix. Cool.

An update was committed to CVS HEAD, DRUPAL-4-6.

For a diff of changes to file "node_privacy_byrole.module", please see
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...

To get the updated module, you can either grab the tarball (but you'll have to wait at least 24 hours after the time this comment was posted) or you can just grab the most updated file "node_privacy_byrole.module" from the CVS:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...

A more detailed help hook will be coming some time in the hopefully not-to-distant future. Just stay tuned to http://drupal.org/node/22548

-Ankur

zhasper’s picture

Fixed for me :)

Thanks!

Anonymous’s picture