I add some code fields to add related pages directly from parent pages. Just static html "a href" inside.
Now I need to restrict access (visibility) to this fileld by role (editor, admin only).
I install the "Field Permission" module, but unfortunately it has no effect to DS fields.
Is it any solutions about such problem?

Comments

swentel’s picture

Status: Active » Closed (duplicate)

There's two options:

- either implement hook_entity_view_alter in a custom module and change the access yourself
- wait for the 7.x-2.x branch which has a feature request for this, see #1463838: Implement hook_field_access() for DS fields