Description
This module adds new field formatters for entityreference which check access before displaying rendered entities. Views has access filters such as 'published', but entityreference rendered entity formatter only checks entity_access()
for the current user.
Current formatters
-
Role
Adds an access formatter for configurable role. This formatter is helpful if a user of one role wants to preview a list of referenced entities as another role without forfeiting their current role (ruling out solutions like Masquerade). For example, for an editor to use SPS preview mode, they must retain their current role.
Dependencies
- Entity reference
To do
- Make a patch to invoke something like
hook_field_formatter_view_alter()
orhook_field_formatter_prepare_view_alter()
. With one of those, we could then add our setting to the existing 'entityreference_entity_view' formatter withhook_field_formatter_info_alter()
,
hook_field_formatter_settings_form_alter()
, andhook_field_formatter_settings_summary_alter()
.
Project information
- Module categories: Access Control
- 28 sites report using this module
- Created by scottrigby on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 29 Apr 2014 at 21:18 UTC