summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Sorqvist2013-01-19 15:58:04 (GMT)
committer Fabian Sorqvist2013-01-19 15:58:04 (GMT)
commit5ffcf2de46456572b9c81679300e26c9b742e180 (patch)
tree970cdb814ff325705c32d32a1421ea832f46b976
parenta539188545c2b42e600d18b1e0ccaeeadb8b00c2 (diff)
Fix permission for now
-rw-r--r--entity_collection.ief.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/entity_collection.ief.inc b/entity_collection.ief.inc
index 60631be..3327c01 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);