Hi, I've noticed that taxonomy_uuid_load breaks entity_access for taxonomy_term entity type because entity_access calls entity_metadata_taxonomy_access which relies on taxonomy_term_edit_access, and this function uses vocabulary id for permission check, not the machine name.

entity_access also fails for nodes because node->uid is the uuid of the node owner and node_node_access compares user->uid with node->uid.

CommentFileSizeAuthor
#3 uuid_node_access-2156045-2.patch961 bytesjuanjo_vlc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

juanjo_vlc’s picture

Title: taxonomy_uuid_load breaks entity_access check » entity_access check fails on taxonomy terms and nodes
Issue summary: View changes
juanjo_vlc’s picture

I've created a patch to provide hook_node_access implementation.

juanjo_vlc’s picture

Status: Active » Needs review
FileSize
961 bytes