Posted by Dave Reid on January 11, 2013 at 11:40pm
5 followers
| Project: | Rules |
| Version: | 7.x-2.x-dev |
| Component: | Rules Core |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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'
Comments
#1
Patch for review.
#2
Not empty patch this time.
#3
The last submitted patch, 1886638-rules-condition-field-access.patch, failed testing.
#4
I 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.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.