mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Fix i18n locale queries being forbidden even with the correct permission set
This commit is contained in:
parent
8b719b12e9
commit
54c8cbf846
@ -66,6 +66,10 @@ module.exports = ({ strapi }) => ({
|
||||
...createLocalizationResolversConfig,
|
||||
// locale arg transformation for localized createEntity mutations
|
||||
...getLocalizedCreateMutationsResolversConfigs({ typeRegistry }),
|
||||
|
||||
// Modify the default scope associated to find and findOne locale queries to match the actual action name
|
||||
'Query.i18NLocale': { auth: { scope: 'plugin::i18n.locales.listLocales' } },
|
||||
'Query.i18NLocales': { auth: { scope: 'plugin::i18n.locales.listLocales' } },
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user