Commit 90ecafe8 authored by ccjjmartin's avatar ccjjmartin Committed by Ra Mänd
Browse files

Issue #2611938 by ccjjmartin: Entity Reference inside of a Field Collection...

Issue #2611938 by ccjjmartin: Entity Reference inside of a Field Collection results in random 403 errors
parent 0521e0cf
......@@ -344,6 +344,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.'),
),
);
}
......@@ -368,6 +372,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment