diff --git a/field_collection.module b/field_collection.module index 8c98599..de3d4e2 100644 --- a/field_collection.module +++ b/field_collection.module @@ -326,6 +326,10 @@ function field_collection_permission() { 'title' => t('Administer field collections'), 'description' => t('Create and delete fields on field collections.'), ), + 'edit field collections' => array( + 'title' => t('Edit field collections'), + 'description' => t('Edit field collections.'), + ), ); } @@ -349,6 +353,9 @@ function field_collection_item_access($op, FieldCollectionItemEntity $item = NUL if (isset($item) && !$item->isInUse() && $op != 'view') { return FALSE; } + if (user_access('edit field collections', $account)) { + return TRUE; + } if (user_access('administer field collections', $account)) { return TRUE; }