Update 1075_sharelinkbundle.py

This commit is contained in:
shamoon
2025-12-30 15:41:12 -08:00
parent e02dbb1db6
commit 741a72fd1c

View File

@@ -19,9 +19,6 @@ def grant_share_link_bundle_permissions(apps, schema_editor):
app_config.models_module = None app_config.models_module = None
add_document_perm = Permission.objects.filter(codename="add_document").first() add_document_perm = Permission.objects.filter(codename="add_document").first()
if add_document_perm is None:
return
share_bundle_permissions = Permission.objects.filter( share_bundle_permissions = Permission.objects.filter(
codename__contains="sharelinkbundle", codename__contains="sharelinkbundle",
) )