# How can I write a plugin to allow TL1 to ignore users?

**URL:** https://meta.discourse.org/t/how-can-i-write-a-plugin-to-allow-tl1-to-ignore-users/147958
**Category:** Development
**Created:** [April 14, 2020, 1:21pm UTC](https://meta.discourse.org/t/how-can-i-write-a-plugin-to-allow-tl1-to-ignore-users/147958 "2020-04-14T13:21:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)
#### Post date: [April 14, 2020, 1:21pm UTC](https://meta.discourse.org/t/how-can-i-write-a-plugin-to-allow-tl1-to-ignore-users/147958/1 "2020-04-14T13:21:36Z")

</div>

I found this code, which seems to be exactly the place I want to override:

> <https://github.com/discourse/discourse/blob/e1f8014acd2877cda539b14b4694d9c077f6b36d/lib/guardian.rb#L471>

I see where it checks the user’s trust level and only allows them if their level is \>= `:member` …I think if I change that to `:basic` it will let TL1 users ignore.

This code is part of `guardian.rb`

Is it possible to override this? (Or accomplish the same goal elsewhere in the code?)

---

<div class="post-metadata">

### Author: ![hyd504](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyd504/32/177122_2.png) [@hyd504](https://meta.discourse.org/u/hyd504)
#### Post date: [February 15, 2021, 9:25pm UTC](https://meta.discourse.org/t/how-can-i-write-a-plugin-to-allow-tl1-to-ignore-users/147958/2 "2021-02-15T21:25:08Z")

</div>

I also have similar question. How to override TopicGuardian in our plugin code so that our subclass of TopicGuardian is used instead of the original TopicGuardian to mixin to the main Guardian class?

---

<div class="post-metadata">

### Author: ![hyd504](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyd504/32/177122_2.png) [@hyd504](https://meta.discourse.org/u/hyd504)
#### Post date: [February 15, 2021, 10:01pm UTC](https://meta.discourse.org/t/how-can-i-write-a-plugin-to-allow-tl1-to-ignore-users/147958/3 "2021-02-15T22:01:58Z")

</div>

I found the answer here: [Overriding user\_guardian.rb in a plugin (no fork necessary!) - #18 by leighno5](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839/18)
