diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3f92ee00f4..877fdbc8f4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,6 +4,8 @@ on: push: branches: - 'main' + paths: + - 'docs/**' workflow_dispatch: diff --git a/packages/plugins/i18n/server/graphql.js b/packages/plugins/i18n/server/graphql.js index aee2479e8c..2d8bdafb98 100644 --- a/packages/plugins/i18n/server/graphql.js +++ b/packages/plugins/i18n/server/graphql.js @@ -60,6 +60,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' } }, }, }; });