Closed (works as designed)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 09:02 UTC
Updated:
28 Feb 2011 at 16:14 UTC
In field_collection_item_access(), entity_access() and field_access() are used to determine access to field, but the $op argument is wrongly used.
entity_access() expects 'view', 'update', 'create' or 'delete' and field_access() expects 'edit' or 'view'.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| field_collection_item_access.patch | 1.13 KB | jide |
Comments
Comment #1
jide commentedHum, sorry, I realized I'm wrong here, the implementation is perfectly correct : if we want to add, delete or modify a field, that means we want to *edit* the entity.