Skip to content

Feature Request: Hide group/tab based on ROLE #158

@brooksvb

Description

@brooksvb

I would like to hide an entire group or tab if a user doesn't have permission for anything inside of it.

Ex: - { type: 'group', columns: 6, label: 'Permissions', role: 'ROLE_MANAGER' }
This will not appear for non-managers, nor will any fields inside of it. Whether or not role: 'ROLE_MANAGER' is still necessary for the fields inside the group would be up to implementation details. Personally I think it would be good to still require that specification on each field.

The point is that even if every field in the tab/group is disabled or what I really want is for them to not appear at all, then the tab or group will still show up, empty.

Additionally, it would be nice to customize the behavior of whether or not a field is rendered as disabled or if it will not be added to the form altogether based on the role constraint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions