Skip to content

v1.4.0

Choose a tag to compare

@webrek webrek released this 08 Jun 03:23

Fixed

  • Read assignments stored in the legacy flat form (a plain array of id strings, e.g. written by Maklad) in addition to the structured subdocument form. Previously hasRole(), hasPermissionTo(), roles() and permissions() returned nothing for users whose role_ids/permission_ids were flat string arrays — causing role:/permission: middleware to 403 those users. Both forms now coexist (legacy data works and is upgraded in place on assign). Applied across HasRoles, HasPermissions and PermissionRegistrar via a shared Support\\Entry normaliser.

Added

  • Support\\Entry helper normalising an entry (flat string or structured array) to {id, team_id, expires_at}.

Note

  • Single-tenant apps (e.g. Metrix) should set 'teams' => false in config/permission.php.