payloadcms / payload

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
https://payloadcms.com
MIT License
21.1k stars 1.27k forks source link

fix: ensures access query runs with locale when present #6981

Closed JarrodMFlesch closed 4 days ago

JarrodMFlesch commented 5 days ago

Description

Fixes https://github.com/payloadcms/payload/issues/6915

Access request in the admin panel was not including the locale.

This was due to the fact that the auth provider was attempting to use useLocale but that is a child of AuthProvider.

Type of change

Checklist: