Changelog - 2026-10-14
canAccess reaches an AuthProvider subclass without a fourth super argument
Bug FixIn one line. When an application binds CoreBindings.PERMISSION_PROVIDER, every DefaultAuthProvider subclass now exposes canAccess, whatever arguments it passes to super.
What changed
- The bug.
DefaultAuthProvidertook the permission provider only as its fourth constructor argument. A subclass with its own constructor that passed three arguments tosuperended up withoutcanAccess, and react-admin then allowed everything with no warning. - The fix. The provider now also reads the bound permission provider from the container. A permission provider passed to
superstill wins over the bound one. - Nothing bound, nothing changes. Without a bound permission provider there is still no
canAccess, and react-admin allows everything.
Who is affected
- Applications with an
AuthProvidersubclass and a bound permission provider. Their checks now run. Remove any workaround that injected the provider only to forward it tosuper; it keeps working if left in place. - Applications that bind no permission provider. No action needed.