Say I have a text list field attached to a node with the following values:
But I want to give some options only to some roles, for example:
- Only Administrators can select Strawberries.
- Only Anonymous can select Kiwi.
- Only Role C can select Pears.
Is there a module for this? Or, if I was going to code it myself, is there a hook to start from?
This is for Drupal 8 but if there was a solution only for 7, that would be interesting to look at too.