# Partial read-only mode

**URL:** <https://meta.discourse.org/t/partial-read-only-mode/210401>\
**Category:** Feature\
**Tags:** read-only\
**Created:** [November 29, 2021, 1:46pm UTC](https://meta.discourse.org/t/partial-read-only-mode/210401 "2021-11-29T13:46:30Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel/32/172786_2.png) [@daniel](https://meta.discourse.org/u/daniel)\
**Post date:** [May 25, 2022, 9:45pm UTC](https://meta.discourse.org/t/partial-read-only-mode/210401/18 "2022-05-25T21:45:09Z")

</div>

Something similar to the OP is now possible.

We recently added a “staff writes only” mode - it’s a readonly mode that only affects non-staff. It allows staff to login, post, change settings, etc, while other users see a site that is effectively in readonly mode.

# Usage

To enable, from the console, run:

```ruby
Discourse.enable_readonly_mode(Discourse::STAFF_WRITES_ONLY_MODE_KEY)

```

and to disable:

```ruby
Discourse.disable_readonly_mode(Discourse::STAFF_WRITES_ONLY_MODE_KEY)

```

I hope this is useful to you! Let me know if you have any questions.

---

_[View the full topic](https://meta.discourse.org/t/partial-read-only-mode/210401)._
