The issue revolves around the TL3Promotions job excluding users whose trust level is locked by group membership, preventing them from being promoted to Trust Level 3 even if eligible. simon proposed removing the group_locked_trust_level: nil condition from the query, which was supported by supermathie after reconsidering the intent. Mittineague raised concern that unlocking TL3 might allow unintended demotions, which danekhollas addressed by suggesting that group-granted trust levels should prevent demotion but not block promotion. The use case involves private forums where users are default TL2 via group membership but should still be promotable to TL3. pfaffman noted prior discussions about locking users at TL1, which danekhollas clarified can be done via admin settings. simon finalized the solution: group-granted TL should not block promotion to TL3, and if the group grants TL3, users should not be demoted by the job. This was implemented in PR #6249, requiring minimal code changes and spec updates.
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.
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.
Yep, the current behavior is definitely confusing.
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.