Cant disable read-only mode

Thanks

This command in rails did the trick

Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)