I want to create a store and allow the store owner to add products to that store. That works and I am also using Entity Reference Prepopulate to do it via the URL.

The thing is that everyone can now add a product reference to that store node which would allow persons could add products to other store owner's store.

Is there any permission option to allow only the node creator to reference a node?

Comments

dflitner’s picture

I've solved a similar problem by using a view to populate the entity reference field. My view has an author relationship and is filtered by (author) User:Current (Yes). Therefore, a user only sees the nodes they themselves have authored in the reference field.

The only problem with this is that there is no exception for administrators, etc. No one can see any nodes except the ones they've authored.

april26’s picture

Issue summary: View changes

Thank you, thank you! You guided me to the right solution. I am looking for the exact opposite of this - I let members review content and the dropdown must EXCLUDE nodes from the current author so they can't bump up their own ratings.