diff --git a/program/management/commands/addpermissions.py b/program/management/commands/addpermissions.py index ad0ba48c6d6ec7c221e207e9dca758c5a85ab7a0..5970a05d85f19a7259384327d090f45efe0a62a1 100644 --- a/program/management/commands/addpermissions.py +++ b/program/management/commands/addpermissions.py @@ -28,6 +28,12 @@ PERMISSIONS = { "delete_media", ] ), + "default add/delete media-source": Permission.objects.filter( + codename__in=[ + "add_mediasource", + "delete_mediasource", + ] + ), "custom add media-source": Permission.objects.filter( codename__in=[ "add__file", @@ -70,6 +76,12 @@ PERMISSIONS = { "delete_media", ] ), + "default add/delete media-source": Permission.objects.filter( + codename__in=[ + "add_mediasource", + "delete_mediasource", + ] + ), "custom add media-source": Permission.objects.filter( codename__in=[ "add__file",