# Security Warning

**URL:** <https://forum.inductiveautomation.com/t/security-warning/5715>\
**Category:** Ignition\
**Created:** [January 22, 2013, 11:52am UTC](https://forum.inductiveautomation.com/t/security-warning/5715 "2013-01-22T11:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamJaimes](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@SamJaimes](https://forum.inductiveautomation.com/u/SamJaimes)\
**Post date:** [January 22, 2013, 11:52am UTC](https://forum.inductiveautomation.com/t/security-warning/5715/1 "2013-01-22T11:52:19Z")

</div>

Hello!

It is possible to remove the warning message when trying to access without privileges to a component in a proyect?

Thanks a lot for your help!

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/430df5768f256f5ca40dcfdba7d2f0c13fb0caa0.png)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 22, 2013, 4:32pm UTC](https://forum.inductiveautomation.com/t/security-warning/5715/2 "2013-01-22T16:32:16Z")

</div>

No, that message is built-in. You can remove the security from the button itself and put it in the event handler where you specify any message you want. Something like:`if "RoleName" in system.security.getRoles():
    system.nav.openWindow("SomeWindow")
else:
    system.gui.messageBox("You cannot open this window")`

---

<div class="post-metadata">

**Author:** ![SamJaimes](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@SamJaimes](https://forum.inductiveautomation.com/u/SamJaimes)\
**Post date:** [January 24, 2013, 9:40am UTC](https://forum.inductiveautomation.com/t/security-warning/5715/3 "2013-01-24T09:40:19Z")

</div>

Thanks Travis! useful
