Skip to content

Accessing current user roles #424

Open
@BibiSebi

Description

@BibiSebi

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions