Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brooksvb opened this issue Aug 27, 2019 · 0 comments
Open

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

brooksvb opened this issue Aug 27, 2019 · 0 comments

Comments

@brooksvb
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant