Accidentally made site read only, how do I disable?


#1

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 ?


#2

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.


#3

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


#4


#5

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


#6

all is good thanx my brother


(Régis Hanol) #7