# Restrict uploads

**URL:** https://meta.discourse.org/t/restrict-uploads/112688
**Category:** Theme component
**Created:** [March 27, 2019, 11:03am UTC](https://meta.discourse.org/t/restrict-uploads/112688 "2019-03-27T11:03:40Z")
**Posts on this page:** 1
**Showing post:** 35

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [August 11, 2026, 1:51am UTC](https://meta.discourse.org/t/restrict-uploads/112688/35 "2026-08-11T01:51:23Z")

</div>

@Moin’s excellent update to this component has been merged 🎉 Thank you Moin!

> <https://github.com/tshenry/discourse-restrict-uploads/pull/6>
>
> \### Migrate from trust level to group-based upload restrictions
> Replaces the re…strict\_to\_trust\_level enum setting with restricted\_to\_groups, a list setting that accepts group IDs. This gives admins more flexibility – instead of being limited to trust levels, any combination of groups can be allowed.
> 
> \### Changes:
> \* New setting restricted\_to\_groups (default: 3|10, i.e. staff and trust\_level\_0)
> \* Migration maps existing trust level values to the corresponding automatic groups (TL0→10, TL1→11, TL2→12, TL3→13, TL4→14) and always adds group 3 (staff)
> \* Upload permission is now checked against group membership instead of trust level
> \* Staff is no longer an implicit exception, instead the staff group is added to the setting by default.
> 
> Note: The error dialog no longer mentions a specific trust level since the restriction is now group-based and telling the user about the group IDs did not seem helpful to me.
> 
> Also updates linting/CI config and dependencies from latest theme component skeleton.
> 
> @Arkshine already took a look and provided feedback.

I will try to get the OP of this topic updated soon to reflect all of the improvements that have come in from @Arkshine and @Moin this year.

---

_[View the full topic](https://meta.discourse.org/t/restrict-uploads/112688)._
