I'm trying to implement
localebased RBAC. Basically, I want certain fields to be edited only on one locale for example config related fields however the
req.localeis always
en (default locale). How do I get the current locale? 🤔
Hi
@541306947463282698, this issue was recently fixed. If you have already migrated to 2.0, you can upgrade to v2.2.0 to fix this! Let us know if you have any further questions or issues.

Hi,
I'm on version
v2.22.0and this still is happening.
When calling the local API, the
PayloadRequest.localeis equal to
PayloadRequest.fallbackLocaleand not equal to the current selected
locale.
Star
Discord
online
Get dedicated engineering support directly from the Payload team.