+The example taught `${user.role === "admin"}` as the admin check. `user.role` is better-auth's legacy `sys_user.role` scalar: ObjectStack never writes it, and with the admin plugin on it reads `user` for every user, a platform admin included, so a predicate copied from the example never opens for the people it means. The example now evaluates `${user.isPlatformAdmin === true}`, the documented platform-admin signal (`current_user.isPlatformAdmin == true`, ADR-0068 D4). No code, export or behaviour changes.
0 commit comments