diff --git a/src/documents/migrations/1075_sharelinkbundle.py b/src/documents/migrations/1075_sharelinkbundle.py index b48eb5ec3..c478ff36e 100644 --- a/src/documents/migrations/1075_sharelinkbundle.py +++ b/src/documents/migrations/1075_sharelinkbundle.py @@ -19,9 +19,6 @@ def grant_share_link_bundle_permissions(apps, schema_editor): app_config.models_module = None add_document_perm = Permission.objects.filter(codename="add_document").first() - if add_document_perm is None: - return - share_bundle_permissions = Permission.objects.filter( codename__contains="sharelinkbundle", )