# Stuck in 'Read Only' Mode

**URL:** https://meta.discourse.org/t/stuck-in-read-only-mode/42820
**Category:** Support
**Tags:** read-only
**Created:** [April 19, 2016, 12:09pm UTC](https://meta.discourse.org/t/stuck-in-read-only-mode/42820 "2016-04-19T12:09:13Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [April 19, 2017, 8:56pm UTC](https://meta.discourse.org/t/stuck-in-read-only-mode/42820/10 "2017-04-19T20:56:19Z")

</div>

> [@pfaffman](#):
>
> Maybe it’s a UX thing. 🙂 it would just seem that such a function could be written such that it didn’t need an argument

It doesn’t need an argument by default 😉

> <https://github.com/discourse/discourse/blob/7eabb90b710a4ad6527c37c2765323268f8dde14/lib/discourse.rb#L252-L256>

> [@pfaffman](#):
>
> And apparently it used to work without an argument.

Anyway, `Discourse.disable_readonly_mode` isn’t public API so what used to work might not always continue to work. The source code is the “source” of truth in this case.

> [@pfaffman](#):
>
> How to check the redis keys? Oh. No I managed to get it out of read only with your help, so we can’t tell now?

Assuming you ran `Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)` to get it out of read only mode, it was a user that enabled readonly mode.

---

_[View the full topic](https://meta.discourse.org/t/stuck-in-read-only-mode/42820)._
