Create New Entity Reference Permission

Component ID

2885474

Component name

Create New Entity Reference Permission

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

95

Component created

Component changed

Component body

You have a site where you want your users to create nodes, blog pages etc. You use tag style taxonomy terms on these nodes. You want your trusted site editors to be able to add new terms when they create content but your regular users are polluting your tags vocabulary with misspelled words. How can you stop these users creating new terms but allow your editors to add terms whilst writing content? The answer is this module!

It adds a new permission "Create new autocomplete referenced entity" which takes effect when your autocomplete widgets are switched to "Autocomplete (with new entity permission)".

Installation

  • Install module as normal
  • Add a new Entity Reference field (or you can adjust an existing field)
  • Set the "Reference Type" to "Create referenced entities if they don't already exist"
  • On the "Manage form display" page for the field, choose the "Autocomplete (with new entity permission)" widget for the field
  • Grant selected user roles the "Create new autocomplete referenced entity" permission.