Fix i18n locale queries being forbidden even with the correct permission set

This commit is contained in:
Convly 2022-07-01 14:19:07 +02:00
parent 8b719b12e9
commit 54c8cbf846

View File

@ -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' } },
},
};
});