It would be nice if we could add conditions that given a user entity, and another entity of any type, and returns the result of field_access($op, $field, $entity_type, $entity, $account) where $op is either 'edit' or 'view'
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1886638-rules-condition-field-access.patch | 2.71 KB | dave reid |
| #1 | 1886638-rules-condition-field-access.patch | 0 bytes | dave reid |
Comments
Comment #1
dave reidPatch for review.
Comment #2
dave reidNot empty patch this time.
Comment #4
fagoI made some small changes, e.g. to make $account optional, added basic test coverage + committed it. Thanks!
Also I realized we've no condition for checking entity access yet. Thus opened #1954344: Add "User has entity access" condition.