I found that even after hitting Rebuild on the node-settings/rebuild page, the node_access table didn't update to reflect the update permission I granted to Recipe type (from Recipe module) content to a role I created.

The permissions table had the right information in it, for rid=3:

| 55 | 3 | access content, create recipes, edit any recipe content

but the node_access table never got a row with the content_access_rid realm set (all realms were set to 'all.')

So I determined that one solution was the loop in content_access_get_type_grant($node), which needed to consider all $ops values, not just 'view'. After I did this, this particular problem went away.

I have attached a patch file for content_access.module (apply in the same directory as original file) for this problem. Can someone check if this is the right solution?

Comments

fago’s picture

Status: Needs review » Closed (won't fix)

Why should we write node access grants when it's already done through permissions?