EasyAdminExtensionBundle icon indicating copy to clipboard operation
EasyAdminExtensionBundle copied to clipboard

Feature Request: Hide group/tab based on ROLE

Open brooksvb opened this issue 5 years ago • 0 comments

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.

brooksvb avatar Aug 27 '19 12:08 brooksvb