Accidentally made site read only, how do I disable?

hello,

I actived the function read only on the discourse forum, but i logged out and now, i can’t able to reconnect to the forum.
What is it the solution please ?

Found this via searches.

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.

5 „Gefällt mir“

how to log in rails console ? i installed ruby-railties

1 „Gefällt mir“

Yup this should’ve done it. Do you have access to your site login now?

4 „Gefällt mir“

all is good thanx my brother