Problem/Motivation
User gets an error when trying to reference an unpublished entity that he himself has just created and that he has full access to. This basically makes it impossible for a user to submit a set of unpublished interreferencing entities (e.g. artefact/architect/city).
Steps to reproduce:
1. Create content type A, make sure Published is unchecked in the Publishing options.
2. Create content type B, add an ER field referencing A, choose Autocomplete widget in Form display.
3. Create a test user, give him permissions to View own unpublished content, to Create A and B, to Edit own A and B.
4. Log in as that user.
5. Create a test node of type A, verify that it's Unpublished and the user can see it.
6. Create a test node of type B, start typing the label of the A node just created, verify that it's not recoginized and suggested by the system.
7. Type the complete label and hit Save, get the "No such entity" error.
8. Type the entity label followed by its nid in parentheses, still get the "This entity (node: N) cannot be referenced”
Proposed resolution
Allow referencing unpublished entities if the current user has access to them.