# 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:** 1\
**Showing post:** 1

<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.

---

_[View the full topic](https://meta.discourse.org/t/why-are-trust-levels-so-integral-to-discourse-as-opposed-to-a-more-modular-permission-system/97896)._
