You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: