Enable/Disable Components by User AdminGroup


I’m enabling/disabling components based on a user’s permissions. My current solution is by writing a custom action on page load to check the user’s admin groups then enable/disable the components one by one. Is there a more native way in the framework to do this? It seems to be a lot of work any time I need to add a new component or replicate this on another page.



Nope, no native way in the framework because permissions aren’t applied to components at all.