Every time I rebuild permissions, I have three records where the nid = 0, which is allowing undesired access to certain nodes. Here is an example of what the devel node access shows on one of my nodes that I only want rid=3 to view. When I go into the table and manually delete the nid=0 records, the permissions work correctly, but when I rebuild my permissions, they reappear. Any thoughts?
0 ? alien nodeaccess_author 1 1 1 1
0 ? alien nodeaccess_rid 1 1 0 0
0 ? alien nodeaccess_rid 2 1 0 0
365 0 ok nodeaccess_author 12 1′ 1′ 1′
365 0 ok nodeaccess_rid 3 1′ 1′ 1′
Thank you!
Nate Klingerman
Comments
Comment #1
nate.klingerman commentedComment #2
vlad.pavlovic commentedYou must somehow have a node (in the node table) that has a nid of 0, I am not sure how that happened though.
The function node_access_write_grants ultimately writes that grant and never checks that nid > 0.
Sorry, wish I could help you.