Skip to content

Publishing 0.15.0: Separate permissions for groups and settings, and PhoenixKit 3 support

Publishing 0.15.0 splits two rights out of the base Publishing permission, so you can let someone write posts without letting them delete whole groups or change the module’s settings. It also runs on PhoenixKit 3.

Two new permissions

The publishing permission used to cover everything in the module. Two sub-permissions now sit under it:

  • Manage groups: create, edit, trash, restore and permanently delete publishing groups with all their posts.
  • Change the module’s settings: open the Publishing settings page and change settings and caches there.

A user without Manage groups no longer sees Create Publishing Group, the trash, restore and delete buttons on the groups page, or the group’s Settings button on a post listing. Opening the group edit page or the new group page directly sends them back with “You don’t have permission to manage publishing groups”. The AI translation of a group name in the edit form is refused the same way. A user without the settings right is refused on the settings page, and the settings entry in the admin menu needs the new right too.

The machine API follows the same split: the tools that create, trash and restore groups now need publishing.manage. The other publishing.* tools still need publishing.

Nobody loses access on upgrade. At boot, the module grants both new rights once to every role that already holds publishing. Each grant has its own flag, so it runs only once: if you later take a right away from a role, it stays taken away. A role given publishing after that gets only the narrow meaning, and you grant the new rights separately.

Works with PhoenixKit 3

The module now accepts PhoenixKit from 2.65.0 up to, but not including, 4.0. It builds its own tables, so it does not depend on core creating them.

Repair, doctor and orphan files

Publishing now describes its seven tables to core, so mix phoenix_kit.repair and mix phoenix_kit.doctor can check them again. Repair only adds what is missing and reports the rest. The module also tells core’s orphan-file check which of its rows point at a stored file, from the posts’ content and versions tables. What counts as an orphan does not change.

Upgrading

Update the dependency. The module now needs PhoenixKit 2.65.0 or later and AI 0.27 or later. There is no migration. After the first boot, check your roles: every role that had publishing now also has Manage groups and Change the module’s settings, and you can remove them where they are not wanted.

Full release notes: Publishing 0.15.0

0.15.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 7 tables (expected_schema/0, PhoenixKit.Modules.Publishing.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 PhoenixKitPublishing.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.
  • The module now tells core’s orphan-file check which of its rows point at a stored file (file_references/0, in FileReferences): phoenix_kit_publishing_contents, phoenix_kit_publishing_versions. The SQL moved here verbatim from core’s PhoenixKit.Modules.Storage; a test compares it with core’s own copy. Core reads the callback from the first release after 2.64.1; before that, core’s own list stays in force. No migration, no change in what counts as an orphan.

Publishing 0.15.0. Install or update: {:phoenix_kit_publishing, "~> 0.15"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.