# TL3 の昇進ジョブは、グループでロックされた信頼レベルを持つユーザーを除外します

**URL:** https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333
**Category:** Bug
**Created:** [2018 年 7 月 28 日午前 1:17 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333 "2018-07-28T01:17:59Z")
**Posts on this page:** 8
**Page:** 1

<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: [2018 年 7 月 28 日午前 1:17 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/1 "2018-07-28T01:17:59Z")

</div>

When a user is added to a group that automatically grants a trust level, they can’t be promoted to Trust Level 3 by the `TL3Promotions` job. This is because the `group_locked_trust_level` property is set on the user, and the `TL3Promotions` job excludes any user where the `group_locked_trust_level` is not `nil`.

Removing the `group_locked_trust_level: nil` condition from the promotions query seems to solve the problem without any issues.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2018 年 7 月 28 日午前 3:15 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/2 "2018-07-28T03:15:41Z")

</div>

I was initially thinking:

> that doesn’t sound like a bug - if the trust level is locked by a group then perhaps the admins want to keep them there

but the way it’s worded makes me agree with you instead:

> ![image](https://global.discourse-cdn.com/meta/original/3X/d/8/d89d725b6c5a684e3898d8794a8cbd8574ffd8a3.png)

👍

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2018 年 7 月 28 日午前 3:32 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/3 "2018-07-28T03:32:23Z")

</div>

I’d worry that while locking at TL2 might prevent advancement to TL3, not locking at TL3 might allow an undesirable loss of TL3

---

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [2018 年 7 月 28 日午後 12:36 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/4 "2018-07-28T12:36:14Z")

</div>

> [@Mittineague](#):
>
> I’d worry that while locking at TL2 might prevent advancement to TL3, not locking at TL3 might allow an undesirable loss of TL3

Right. I’d suggest that when you have TL granted by groups membership, you should never get demoted, but you should certainly be allowed to go up . Or is there any usecase where you really don’t want that?

In our case, we have a non-public invites only forum so we want users to be TL2 by default. The fact that they are stuck at TL2 though is a problem.

> [@supermathie](#):
>
> but the way it’s worded makes me agree with you instead:

Yep, the current behavior is definitely confusing.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018 年 7 月 29 日午前 4:18 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/5 "2018-07-29T04:18:37Z")

</div>

There was a topic recently where there was a reason to lock someone at TL1 (0?). I couldn’t figure out how to do that.

---

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [2018 年 7 月 29 日午前 11:25 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/6 "2018-07-29T11:25:27Z")

</div>

Yes, you can to that in the admin settings of that user (the same place where you can suspend him/her etc.)

---

<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: [2018 年 8 月 8 日午後 6:58 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/7 "2018-08-08T18:58:53Z")

</div>

The way I think this should work is that if a group automatically grants a trust level, members of the group can still be promoted by the `TL3Promotions` job. If membership in the group grants Trust Level 3, members of the group **cannot** be demoted from Trust Level 3 by the `TL3Promotions` job.

To achieve this would only require a small change to the code. The biggest change would be updating the spec file.

Edit: This has been implemented by  
[https://github.com/discourse/discourse/pull/6249](https://github.com/discourse/discourse/pull/6249)

---

<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: [2018 年 8 月 10 日午後 8:23 UTC](https://meta.discourse.org/t/tl3-promotions-job-excludes-users-with-a-group-locked-trust-level/93333/8 "2018-08-10T20:23:25Z")

</div>


