Currently, there is the idea to replace all usages of node_access in general and replace the calls by $entity->access(). See #1947880: Replace node_access() by $entity->access() for further information.

Unfortunately the patch in the referenced issue can't remove node_access yet because there are still access callback definitions in node_menu() that require node_access. So after the node_menu was improved by using the new routing system, node_access should eventually be removed.

Comments

berdir’s picture

Title: Remove node_access and rewrite node_menu() » Remove node_access
Status: Active » Postponed
Issue tags: +Entity Access, +Entity Field API

Rewriting node_menu() is not in the scope of this issue.

xano’s picture

node_menu() no longer uses node_access(). #1947880: Replace node_access() by $entity->access() will convert any or most remaining usages of the function.

berdir’s picture

Status: Postponed » Closed (won't fix)

Yes, it will, I think the latest patch already removes the function.