thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
134 stars 27 forks source link

Add Django permission for package deprecation #922

Closed MythicManiac closed 10 months ago

MythicManiac commented 11 months ago

Add a new Django permission which can be used to grant package deprecation ability without granting full change permissions.

This makes it possible to grant access to the package management panel for users without full edit rights to the Package model, as it's currently based on the deprecation permission.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (bdff92b) 92.51% compared to head (488375d) 92.51%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #922 +/- ## ======================================= Coverage 92.51% 92.51% ======================================= Files 275 275 Lines 8136 8141 +5 Branches 771 772 +1 ======================================= + Hits 7527 7532 +5 Misses 504 504 Partials 105 105 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.