Stuck in 'Read Only' Mode

It doesn’t need an argument by default :wink:

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

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.

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.

5 Likes