Template Security Inheritance

Is there any property that I can use to set colors/visibility of components in a template bases on it’s inherited security from the window/group it is embedded on?

Basically we have templates that get interacted with that look like they can be interacted with if they are not enabled and I would like to change their look if they are enabled or not.

These templates are embedded in windows/groups that security is applied on the window/group to disable components and I’d like to be able to grab that state and do something with the template.