# Lock trust level doesn't seem to work

**URL:** <https://meta.discourse.org/t/lock-trust-level-doesnt-seem-to-work/90201>\
**Category:** Bug\
**Created:** [June 19, 2018, 11:28am UTC](https://meta.discourse.org/t/lock-trust-level-doesnt-seem-to-work/90201 "2018-06-19T11:28:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [June 19, 2018, 7:44pm UTC](https://meta.discourse.org/t/lock-trust-level-doesnt-seem-to-work/90201/3 "2018-06-19T19:44:36Z")

</div>

What I’m finding is that when I lock the trust level of a TL 0 user, the Lock Trust Level button doesn’t update to display the Unlock Trust Level button. When I lock the trust level of a TL 1 user, the Lock Trust Level button is correctly updated to display Unlock Trust Level.

After locking the trust level of a TL 0 user, the user’s trust level seems to be locked at Trust Level 0, even though the UI doesn’t reflect this. Have you found users whose trust level you have locked at 0 being promoted to Trust Level 1?

In the database, when a TL 0 user has their trust level locked the user’s `manual_locked_trust_level` property is set to `0` (their trust level.)

The problem could be that for a TL 0 user `model.manual_locked_trust_level` returns `0`, so the Unlock Trust Level button can’t be displayed.

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/admin/templates/user-index.hbs#L307](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/admin/templates/user-index.hbs#L307)

---

_[View the full topic](https://meta.discourse.org/t/lock-trust-level-doesnt-seem-to-work/90201)._
