Posted by ronyon on April 10, 2008 at 6:27pm
Has anyone been using the nodeaccess module in production? We've got it setup on our site but I'm having trouble getting grants to take.
I don't see what the pattern is but but after 'granting' a user view & edit permission, there's still no 'View| Edit' link.
I tried clearing the menu and other caches. This happens to be a section of the site that anonymous users are denied 'view.'
Are there any other good ways to grant or deny on pages? It seems like the most solid way is to create another node type but we're a little to far along for that. I've also read taxonomy can be hooked for privelages. Any ideas on this module?
Thanks!
Comments
Rebuild the Grants Table
Have you tried disabling the module to see if the grants come back?
Any module that writes to the grants table should reallow access when it is disabled.
If the grants come back, re-enable the module. If the grants go away then the problem is definitely with nodeaccess.
I have used taxonomy access on several sites without any problems, but haven't used node access.
I was thinking of using it for a site I am currently working on, but the ended up writing an access module instead because the permissions needed to be based on cck profile uid fields.
I might still need to use nodeaccess for pages, but it is too soon to tell. If I run into any problems / solutions I will post back here.
Try Content Access instead
I have Content Access working on a 5.x site. Not sure about nodeaccess. http://drupal.org/project/content_access
Drupal programmer - http://poplarware.com
Drupal author - http://shop.oreilly.com/product/0636920034612.do
Drupal contributor - https://www.drupal.org/u/jhodgdon
I'm not sure this is the
I'm not sure this is the best way into it? Right now the user is an authenticated and they need to gain edit. Disabling the module leaves them without edit and allows the public view. Bad news for the intranet. ;)
I see a listing in {node_access} for their user id (gid) and the permissions but still a "3" on the page when trying to edit (and no menu). So it seems to work on some book nodes, parent or not, but not others. It's not related to groups.....
I just opened a ticket on
I just opened a ticket on this http://drupal.org/node/245149. I'm a little surprised we have something in beta on our production site but I think the issues is odd enough to warrant a bug ticket. Node access is one of those areas to get right. Thanks for a little help digging into it and module ideas!
Node Privacy
Hello All...
I had to rebuild node permissions after doing all the setup in my content types.
Do this at admin/content/node-settings.
We talked about it here.
http://drupal.org/node/31143
However, this may all be moot because I use the other module...
http://drupal.org/project/node_privacy_byrole
Looking at a couple of
Looking at a couple of different modules, it looks like this would be easy to use because you don't have to create groups for each node to grant. Are there other permissions that need to be set or conflicts for permissions on this? Here's what access looks like for a couple nodes -- Neither works
nid, gid, realm, grant_view, grant_update, grant_delete.... [join]
315, 10, 'nodeaccess_author', 1, 1, 1, 'mm', 'Find Funding'
315, 2, 'nodeaccess_rid', 1, 0, 0, 'tin', 'Find Funding'
315, 99, 'nodeaccess_uid', 1, 1, 1, 'nick', 'Find Funding'
315, 105, 'nodeaccess_uid', 0, 1, 0, 'str', 'Find Funding'
32, 99, 'nodeaccess_author', 1, 1, 1, 'nick', 'Centers & Research'
32, 1, 'nodeaccess_rid', 1, 0, 0, 'admin', 'Centers & Research'
32, 2, 'nodeaccess_rid', 1, 0, 0, 'tin', 'Centers & Research'