# Component property to check security disable events status

**URL:** <https://forum.inductiveautomation.com/t/component-property-to-check-security-disable-events-status/17392>\
**Category:** Ignition\
**Created:** [March 16, 2018, 2:11pm UTC](https://forum.inductiveautomation.com/t/component-property-to-check-security-disable-events-status/17392 "2018-03-16T14:11:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMicky](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JMicky](https://forum.inductiveautomation.com/u/JMicky)\
**Post date:** [March 16, 2018, 2:11pm UTC](https://forum.inductiveautomation.com/t/component-property-to-check-security-disable-events-status/17392/1 "2018-03-16T14:11:52Z")

</div>

Hi,

Does anyone know of a component property that reflects the components security disable events status?

I have a container that opens a pop-up control window when clicked.  
If the user does not have permissions to control it, then this click event is disabled via the security -\> disable events.  
This works fine.

The issue is that I also have a tooltip on the container ‘Press for control pop-up window’.  
This tool tip still works when the events are disabled and is confusing to the operators.  
I would like to change the tool tip based on the containers disable events status.  
Set tool tip to ‘Press for control pop-up window’ if they have permissions. Set to ‘Insufficient Permissions’ if they do not have permissions.

Thank you for you help,

John

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [March 19, 2018, 2:36pm UTC](https://forum.inductiveautomation.com/t/component-property-to-check-security-disable-events-status/17392/2 "2018-03-19T14:36:36Z")

</div>

I do not know of any property, but a simple script like this example should work for all (as far as I can see) components that as the docs says “properly implement enabled within the Vision component system”

```auto
def isComponentDisabledBySecurity(comp):
	"""
		Returns a boolean indicating if the component has been disabled due to security.
	"""

	return not comp.enabled and comp.componentEnabled

```
