# Unable to login as admin after enabling read only mode

**URL:** <https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362>\
**Category:** Product Support\
**Tags:** read-only\
**Created:** [15 april 2018 om 08:08 UTC](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362 "2018-04-15T08:08:07Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)\
**Post date:** [15 april 2018 om 08:58 UTC](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362/12 "2018-04-15T08:58:53Z")

</div>

`Discourse.disable_readonly_mode`  
Not working.

`Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)`  
Working.

Thanks a lot. Now I am able to login.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-login-as-admin-after-enabling-read-only-mode/85362)._
