Closed (duplicate)
Project:
Inline Entity Form
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2013 at 11:57 UTC
Updated:
31 Jan 2013 at 16:27 UTC
At line 357 of inline_entity_form.module, you have
<?php
if (entity_access('create', $settings['entity_type'], $new_entity)) {
...
?>The problem is that $new_entity instead of being an object may be a string, the name of a content type in the case where the entity is of node type. This causes an error in the function entity_metadata_no_hook_node_access() when it tries to load what it expects to be a node. Arguably this is a defect in entity_access as there seems to be no way to check creation rights by type.
Comments
Comment #1
bojanz commentedThere is an open Entity API issue for fixing this: [#1780646.
Comment #1.0
bojanz commentedAdding more details.