-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Django permission for package deprecation
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.
- Loading branch information
1 parent
bdff92b
commit 488375d
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
django/thunderstore/repository/migrations/0044_add_deprecate_permission.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.1.7 on 2023-12-03 03:02 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("repository", "0043_add_package_index_task_schedule"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="package", | ||
options={ | ||
"permissions": ( | ||
("deprecate_package", "Can manage package deprecation status"), | ||
) | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters