Skip to content

CRM 0.18.0: PhoenixKit 3 support and a separate settings permission

CRM 0.18.0 runs on PhoenixKit 3, puts the CRM settings and role pages behind a permission of their own, and stops the CRM from touching the accounts of real people and of the site’s Owners and Admins.

Works with PhoenixKit 3

The CRM now accepts PhoenixKit from 2.65 up to 3.x. On core 3 the CRM’s own migration chain builds its 11 tables, and the module now hands core a list of them, so mix phoenix_kit.doctor and mix phoenix_kit.repair can check them and create what is missing. Repair only adds; it does not change or remove anything.

A separate permission for settings

The CRM permission gets a sub-permission, Change the CRM settings. It covers the CRM settings page (the on/off switch, which roles get a CRM page, the party roles) and the role pages, which list every holder of a role with their email. The plain CRM permission now reaches the records only. Without the sub-permission, the CRM settings button on the overview is hidden, and those pages send you back to the CRM with a message.

So that nobody loses access, every role that already holds the CRM permission is given the new one once, at the first start after the update. A role given CRM access later gets the records only.

A system role, such as Owner or Admin, can no longer be given a CRM page.

Real accounts are left alone

The Link existing… pickers on contacts, companies and the organizations page no longer offer accounts holding the Owner or Admin role, and the server refuses to link one (“This account cannot be linked from the CRM.”).

The CRM now writes a name or email only to a placeholder account it created itself and nobody has confirmed. When you link a registered person’s account and pick the CRM value in the conflict dialog, the dialog says up front that the account stays as it is, and the message after linking says so too.

Smaller changes

  • People with CRM access can moderate comments on contacts, companies and interactions.
  • A person’s calendar no longer fails when the Staff module’s tables are absent.

Upgrading

CRM 0.18 needs PhoenixKit 2.65 or later and pulls in Comments 0.5 or later. There is no migration. Check the roles that hold the CRM permission after the first start: each now also holds Change the CRM settings, and you can take it away from roles that should only work with records.

Full release notes: CRM 0.18.0

0.18.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 11 tables (expected_schema/0, PhoenixKitCRM.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 PhoenixKitCRM.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.

CRM 0.18.0. Install or update: {:phoenix_kit_crm, "~> 0.18"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.