Skip to content

Newsletters 0.6.0: Separate permissions for sending and recipients, and core 3 support

Newsletters 0.6.0 lets you decide who may actually send a broadcast and who may see its recipients, separately from who may draft one. It also works with PhoenixKit core 3 and lets core’s repair and doctor tasks check its tables again.

Who may send, who may see recipients

The Newsletters permission gains two sub-permissions:

  • Send broadcasts: send a broadcast now, schedule it, cancel a send in progress, or retry a failed one. Without it, the editor and the details page hide those buttons, and a crafted request is refused with You don’t have permission to send broadcasts.
  • See recipients: the per-recipient delivery list on a broadcast’s details page and the Address verification page. Without it, the details page still shows the counts, and the sidebar does not show the verification page.

The base Newsletters permission still covers drafting broadcasts and managing layouts.

CRM contact lists now also need the CRM module’s own permission. A user without it is offered role audiences only, and cannot save, send or retry a broadcast aimed at a CRM list.

Nobody loses access on upgrade. Once, at boot, every role that already holds Newsletters is granted both new permissions; Admin and Owner get them as well. A role given Newsletters later starts without them.

Tables checked by core again

The module now describes its three tables to core, so mix phoenix_kit.doctor and mix phoenix_kit.repair check them from the module’s own migration chain. Repair only adds what is missing and reports the rest.

Upgrading

Newsletters 0.6 needs PhoenixKit core 2.65 or later and works up to core 3.x. No migration. After the upgrade, review which roles should keep Send broadcasts and See recipients, and which newsletter editors need the CRM permission to keep using CRM lists.

Full release notes: Newsletters 0.6.0

0.6.0 · 27 October 2026

Changed

  • Core pin widened to >= 2.65.0 and < 4.0.0: works with core 3.x (core 3.0 stops creating the module tables; this module’s own chain builds its tables). The floor is the first core with the file_references/0 and expected_schema/0 callbacks, which now carry @impl PhoenixKit.Module.

Added

  • The module supplies the manifest of its 3 tables (expected_schema/0, PhoenixKit.Newsletters.ExpectedSchema), so mix phoenix_kit.repair and mix phoenix_kit.doctor check and repair them again, now from the module’s own chain instead of core’s manifest. Generated from PhoenixKitNewsletters.Migrations by core’s dev_docs/squash/generate_module_manifest.exs, never edited by hand. Core uses it from the first release after 2.64.1; before that nothing reads it. Repair is additive (it creates what is missing and reports the rest) and checks the tables only while the database is at the chain’s current version. No migration.

Newsletters 0.6.0. Install or update: {:phoenix_kit_newsletters, "~> 0.6"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.