Closed (duplicate)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2011 at 22:07 UTC
Updated:
15 Nov 2016 at 20:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
westbywest commentedHere is what I'm using:
Drupal 7.7
field_collections v7.x-1.x-dev (downloaded last week)
field_permissions v7.x-1.0-alpha1
My symptoms:
- Fields in the collection which are restricted from edit are correctly hidden on a node form to users who don't have those fields' edit permissions
- Fields in the collection which are restricted from view are incorrectly displayed in the rendered node
- Submitting the node edit form, although restricted fields in the collection are not displayed, triggers these undefined index warnings for each restricted field:
Here are relevant lines I've found in the field_permissions in my own search where this integration may be added:
field_permissions.module
line 115: function field_permissions_field_access($op, $field, $obj_type, $object, $account)
admin/includes/field_access.inc
line 11: function _field_permissions_field_view_access($field_name, $field_permissions, $obj_type, $object, $account)
line 63: function _field_permissions_field_edit_access($field_name, $field_permissions, $obj_type, $object, $account)
I've also added an issue to the queue for field_permissions:
http://drupal.org/node/1284016
Comment #2
westbywest commentedThe 2nd symptom described above was resolved by adding field_access awareness to field_collections_table:
http://drupal.org/node/1284042
Comment #3
adellefrank commentedI, too, have found that permissions for VIEWING OWN/EDITING OWN field is not working when that field is a subfield of a field collection.
To reproduce this problem, give View Own/Edit Own permissions to the authenticated user for a field collection "mycollection" and its subfield "subfield1" in a content type's "mytype". I've attached a feature with the setup I described above for testing. This feature uses:
Comment #4
3cwebdev commentedAny updates on getting field_collections to support field_permissions?
Comment #5
albert volkman commentedRelated #1954124: Fields part of field collection are ownerless
Comment #6
jmuzz commentedThis should currently be working in the latest module versions for field collections in a node or user.
See #2825761: Add support for nested field collections for support for field collections nested deeper than this.