# Read Only Error Disable

**URL:** <https://forum.inductiveautomation.com/t/read-only-error-disable/35218>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 1, 2020, 4:36pm UTC](https://forum.inductiveautomation.com/t/read-only-error-disable/35218 "2020-06-01T16:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 1, 2020, 4:36pm UTC](https://forum.inductiveautomation.com/t/read-only-error-disable/35218/1 "2020-06-01T16:36:38Z")

</div>

I have a project that I want to make read only based on hostname. I use…

```auto
system.util.setConnectionMode(2)

```

Is there any way to prevent the error box from opening when someone tries to write?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 1, 2020, 8:25pm UTC](https://forum.inductiveautomation.com/t/read-only-error-disable/35218/2 "2020-06-01T20:25:44Z")

</div>

This is more a work around, but also good practice. I would instead set the enabled state on your components to disabled when the user doesn’t have the access. To that end, I would create a client tag and write that to 0 when you want to disable all write actions. Then you would add this to your enable bindings of all relevant components. Of course, this could be a little bit of work, depending on how large your project is, but will result in better clarity to the user. I would also add a label somewhere in the banner to indicate that write permissions are globally turned off as well, so they know what’s going on
