Skip to content

ShipKit 2.0.0

Choose a tag to compare

@ianlabicani ianlabicani released this 06 Nov 00:48
· 22 commits to main since this release

Requires shipwithian/shipkit-core 2.0.

  • Assign roles to users: a paginated Users page, gated by the new assign roles system permission, sets the roles each user holds. SyncUserRolesAction refuses to add or remove a role holding a permission the actor lacks, so nobody can grant themselves super-admin or strip it from someone with more access, and the last super admin still cannot lose the role.

shipwithian/shipkit-core 2.0.0

A major release because a new system permission makes a 1.0 project's seeder test fail. UPGRADE.md has the fix.

  • Access Control records: SystemPermission::AssignRoles (assign roles), the permission to put roles on users, reserved because nobody could otherwise change who holds which role. The bootstrap creates it protected and gives it to super-admin; existing projects run php artisan db:seed --class=AccessControlSeeder again.

Upgrading

Existing projects update the package with composer require shipwithian/shipkit-core:^2.0 and follow the 2.0 upgrade notes. Template changes are not applied to existing projects: compare the release tags and copy what you want.