I was migrating my friends-only-content from another module and populated drupal_user_relationship_node_access table with correct (to my knowledge) entrees. Then, rebilding content access permissions using the button on admin/content/node-settings, updated drupal_node_access table only for nodes "owned" by admin! The other nodes were granted "alll" view permissions.

I modified user_relationship_node-access.module.
In user_relationship_node_access_nodeapi function, I replaced line 233

if ($node->uid != $user->uid) {

by

if (($user->uid!=1) && ($node->uid != $user->uid)) {

Hope it helps someone who rans into a similar problem. If there was a cleaner way to fix this, please let me know. I'll be happy to ake a path for this if I hear about other people about a similar problem.

Comments

alex.k’s picture

Status: Active » Closed (works as designed)

Thanks for the report. I have fixed a recent issue #629774: Node Access Data Lost When Edited by Different User which may have helped with this one as well. But, I can't guarantee it will work since you injected the node access records yourself.