# Label Enabled property not working as expected

**URL:** <https://forum.inductiveautomation.com/t/label-enabled-property-not-working-as-expected/8794>\
**Category:** Ignition\
**Created:** [July 28, 2014, 1:30am UTC](https://forum.inductiveautomation.com/t/label-enabled-property-not-working-as-expected/8794 "2014-07-28T01:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qversa](https://avatars.discourse-cdn.com/v4/letter/q/35a633/32.png) [@qversa](https://forum.inductiveautomation.com/u/qversa)\
**Post date:** [July 28, 2014, 1:30am UTC](https://forum.inductiveautomation.com/t/label-enabled-property-not-working-as-expected/8794/1 "2014-07-28T01:30:32Z")

</div>

Hi, new to Ignition. I have a Label with a mouseReleased script and I’m binding the Enabled property to the Expression hasRole(“Administrator”). However, when I log in without Administrator role, the mouseReleased script still fires off. I would think that of the label was Not Enabled that it should not perform any action or script? Ive used the Expression hasRole() for other components and it works as expected. Any ideas?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 28, 2014, 9:22am UTC](https://forum.inductiveautomation.com/t/label-enabled-property-not-working-as-expected/8794/2 "2014-07-28T09:22:01Z")

</div>

Hi! Welcome to the forums!

Mouse events will still fire, even if a component is set to be disabled. All is not lost, however. You can use the Enabled property in your script:

[code]if event.source.enabled:

# do some stuff…[/code]

Hope this helps!
