PhoenixKit 1.7.39: Custom permissions for your own admin pages
PhoenixKit 1.7.39 lets the permissions of your own admin pages be managed like the built-in ones, and closes gaps in who may edit which role.
An admin tab in your app with a permission key that PhoenixKit does not know registers that key by itself. It shows up under Custom on the Permissions page and in the roles editor, and the Admin role gets it once by default; if the Owner later takes it away, a restart does not grant it again. Code can register keys with Permissions.register_custom_key/2.
Nobody can now edit the permissions of their own role, the Owner role cannot be changed, and only the Owner can change the Admin role. The module access check on routes now also checks that the module is switched on, as the pages already did. Switching a module on or off no longer empties the admin sidebar. The roles and permissions pages can be translated.
Posts, tickets, storage, comments, referrals and connections now refer to users by UUID. Page headers in the admin scale down on phones.
Full release notes: PhoenixKit 1.7.39
1.7.39 · 16 February 2026
- Complete UUID migration (Pattern 2) across all remaining modules
- Migrate posts, tickets, storage, comments, referrals, and connections schemas to UUID-based user references
- Migrate posts like/dislike/mention functions to accept UUID user identifiers
- Fix stale
.idaccess across posts, storage, tickets, email, connections, and image downloader - Fix ProcessFileJob and media_detail to use user_uuid instead of deprecated user_id
- Replace legacy
.idaccess with.uuidacross mix tasks and admin presence - Remove legacy integer fields from RoleAssignment schema
- Fix 10 Dialyzer warnings across comments, connections, referrals, and shop modules
- Harden permissions system with security and correctness fixes
- Fix security and correctness issues in permissions system
- Add permission edit protection for own role and higher-authority roles
- Add Owner protection to
can_edit_role_permissions/2and standardize UUID usage - Fix edge cases, silent failures, and crash risks in permissions and roles
- Fix dual-write in
set_permissions/3and cross-view PubSub refresh - Fix permissions summary to count only visible keys
- Fix multiple bugs in custom permission keys and admin routing
- Add auto-grant of custom permission keys to Admin role
- Add defensive input validation to custom permission key registration
- Fix
unless/elsetoif/elsefor Credo compliance
- Add gettext i18n to roles and permissions admin UI
- Add Level 1 test suite for permissions, roles, and scope (156 tests)
- Fix responsive header layout across all admin pages
- Add responsive text classes (
text-2xl sm:text-4xl/text-base sm:text-lg) to all page headers - Fix missed responsive text classes in storage, media selector, and publishing pages
- Add responsive text classes (
- Replace dropdown action menus with inline buttons in table rows
- Fix require_module_access plug to check feature_enabled like LiveView on_mount
- Fix admin sidebar wipe when enabling/disabling modules
- Add
get_role_by_uuid/1API and update integration guide - Restore admin edit button in user dropdown and add product links in cart
- Fix selected_ids to use MapSet for O(1) lookups
- Fix Dialyzer CI failure for ExUnit.CaseTemplate test support files
- Fix Credo nesting and Dialyzer MapSet opaque type warnings
- Update Permissions Matrix page title and section labels
PhoenixKit 1.7.39. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.