Closed (duplicate)
Project:
Display Suite
Version:
7.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2012 at 07:20 UTC
Updated:
5 Apr 2012 at 07:53 UTC
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
Comment #1
swentel commentedThere'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