diff --git a/entity_collection.ief.inc b/entity_collection.ief.inc index 60631be6e86630b74aa2cafb16b2fce8268e8b31..3327c017cbb882845b50017a85ac8be0e35aab59 100644 --- a/entity_collection.ief.inc +++ b/entity_collection.ief.inc @@ -62,7 +62,7 @@ function entity_collection_ief_url_options(EntityCollection $entity_collection) foreach ($entity_collection->settings['allowed_bundles'] as $entity_type => $bundles) { if (isset($controllers[$entity_type])) { foreach ($bundles as $bundle) { - if (entity_access('create', $entity_type, $entity)) { + if (entity_access('create', $entity_type)) { $url_options = array('query' => array()); if (!empty($entity_collection->contexts)) { $url_options['query']['contexts'] = _entity_collection_serialize_contexts($entity_collection);