Refactor DropCampaign ACL check and add regression tests for campaign details import

This commit is contained in:
Joakim Hellsén 2026-01-11 23:57:46 +01:00
commit 9f34641e9b
No known key found for this signature in database
3 changed files with 335 additions and 3 deletions

View file

@ -694,7 +694,7 @@ class Command(BaseCommand):
)
# Process allowed channels from the campaign's ACL
if drop_campaign.allow and drop_campaign.allow.channels:
if drop_campaign.allow:
self._process_allowed_channels(
campaign_obj=campaign_obj,
allow_schema=drop_campaign.allow,