Hello

First of all, thanks for this great module. Our company has used it in several projects.
However, we are using it to reference unpublished nodes and the entityreference module formatters check if the node is published bofore render it. In this case, the referenced entities are not displayed.
We decided rewrite the formatters, but deleting the node access validation. We have shared this project as a sandbox.
Maybe you could review this sandbox and give us your opinion about this approach. If you consider it OK, we could promote it as a full project. Otherwise you could add this option in the entityreference module if you consider it useful.

Regards

Comments

amitaibu’s picture

Note that ER's formatter already checks if the node is accessible to the user.

amaisano’s picture

Issue summary: View changes

@amitaibu but if run programmatically, it usually assumes the Anonymous role which will (should) never have unpublished node access. Same goes if users w/o access might need to reference unpublished nodes, for an edge case perhaps.