Open
Description
Is your feature request related to a problem? Please describe.
The developer of a plugin would like to show/hide parts of the plugin based on the current user's roles. This is not possible at the moment as we are not passing the user information to the field plugin.
Describe the solution you'd like
useFieldPlugin()
could expose the current user's roles and id. However we need to check if this can be exploited in any way.
Additional context
This request originates from a Discord thread.