# Why are trust levels so integral to Discourse as opposed to a more modular permission system?

**URL:** <https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896>\
**Category:** Feature\
**Created:** [September 23, 2018, 6:16pm UTC](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896 "2018-09-23T18:16:37Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

The discussion revolves around the rigidity of Discourse's trust level system and its integration into permissions, which some users find limiting. [Drew_Warwick](/t/-/97896/1) highlights issues with the system's inflexibility, such as the inability to apply different permission sets to trust levels without modifying core code, which requires forking Discourse. They argue for a more modular approach, like grouping permissions by roles, to allow greater customization. [robmc](/t/-/97896/2) defends the current design as core to Discourse's philosophy, emphasizing its simplicity for community management and the open-source nature allowing customization. [codinghorror](/t/-/97896/3) notes that trust level defaults work well for most sites and that issues can often be resolved via SSO. [sam](/t/-/97896/4) advises against forking, suggesting plugin overrides instead to modify behavior without altering core code.

<div class="post-metadata">

**Author:** ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)\
**Post date:** [September 23, 2018, 6:16pm UTC](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896/1 "2018-09-23T18:16:38Z")

</div>

We’ve been [running into a number of issues](https://meta.discourse.org/t/how-should-we-configure-our-trust-levels/97893) with Discourse’s trust level system due to how rigid and ingrained it is into permissions. Granted, there was a way to shoehorn our needs into the mold Discourse provides, but Discourse might not always support the distribution of permissions I want. For instance:

TL0: Read-only + like + vote  
TL1: TL0 + write access to some categories + PMs (have to separate trust level for PM setting)  
TL2: new user restrictions removed

Because I have to force TL1 into a new trust level for the PM setting, that role no longer has new user restrictions applied. There are likely a large number of other cases I could invent where Discourse’s trust level system does not mesh great with permissions. In the end, I have to contract someone to write code for me because my desired functionality isn’t feasible otherwise. Not only do I have to write code, but I also have to fork Discourse because trust levels are hardcoded into the source:

```rb
def can_edit_topic?(topic)
    ...

    return true if (
        SiteSetting.trusted_users_can_edit_others? &&
        ...
        user.has_trust_level?(TrustLevel[4])&&
        ...
    )

    return true if (
        SiteSetting.trusted_users_can_edit_others? &&
        ...
        user.has_trust_level?(TrustLevel[3])&&
        ...
    )

    ...
end

```

This becomes a massive hassle for forum admins. Why are trust levels so integral in the first place, as opposed to using a more modular approach (e.g. tie every permission to groups)? If permissions were configured per-group, I could create as many as I’d like, and trust levels are already groups:

[https://meta.discourse.org/groups/trust\_level\_1](https://meta.discourse.org/groups/trust_level_1)

This would also allow me to modularize permissions, so instead of applying restrictions to the trust\_level\_1 group, I could create a “new user restrictions” group and add that to anyone who gets TL0 or TL1. This could all be done without having to hire someone to modify Discourse and make updating an extreme pain.

---

<div class="post-metadata">

**Author:** ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)\
**Post date:** [September 23, 2018, 6:34pm UTC](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896/2 "2018-09-23T18:34:29Z")

</div>

In simple terms, because that is what makes Discourse, Discourse.

If you don’t like the way it works, you are more than welcome to user other tools for your forum, or (as you have done) you are also welcome to take the code and fork it. How many other tools allow that?

We believe this is a great way for forums to run, and a lot LESS hassle for forum admins who want to build communities without having to micro-manage security permissions and instead focus on the users, but as an Open Source tool you are welcome to go a different path.

Of course, we are also open to discussions and developments, so we can have discussions like this on our site and get feedback from users like you to see how relevant this suggestion is

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [September 23, 2018, 10:47pm UTC](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896/3 "2018-09-23T22:47:54Z")

</div>

We don’t see problems with trust level defaults for most sites. One thing we do run into is new users from trusted sources being hamstrung by tl0 restrictions but that is easily solvable via SSO, and other simple techniques.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [September 28, 2018, 3:48am UTC](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896/4 "2018-09-28T03:48:21Z")

</div>

> [@Drew\_Warwick](#):
>
> Not only do I have to write code, but I also have to fork Discourse because trust levels are hardcoded into the source:

This is a major concern to me, you should not be forking Discourse that is super bad ™

Instead have a plug-in override the methods you need.
