# Accidentally made site read only, how do I disable?

**URL:** https://meta.discourse.org/t/accidentally-made-site-read-only-how-do-i-disable/68299
**Category:** Support
**Tags:** read-only
**Created:** [August 18, 2017, 8:23am UTC](https://meta.discourse.org/t/accidentally-made-site-read-only-how-do-i-disable/68299 "2017-08-18T08:23:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)
#### Post date: [August 18, 2017, 8:33am UTC](https://meta.discourse.org/t/accidentally-made-site-read-only-how-do-i-disable/68299/2 "2017-08-18T08:33:05Z")

</div>

Found this via searches.

> [@Stuck in 'Read Only' Mode](https://meta.discourse.org/t/stuck-in-read-only-mode/42820/4):
>
> Discourse.disable\_readonly\_mode(Discourse::USER\_READONLY\_MODE\_KEY)

So basically, executing this in `rails console`:

`Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)`

will get you out of readonly mode, and then you can login.

* * *

Moral of the story? **Don’t** log out after activating readonly mode.

---

_[View the full topic](https://meta.discourse.org/t/accidentally-made-site-read-only-how-do-i-disable/68299)._
