Merge pull request #9940 from strapi/i18n/fix-settings

Remove create permissions for i18n settings
This commit is contained in:
cyril lopez 2021-04-02 14:26:33 +02:00 committed by GitHub
commit 345eef3ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,5 @@
const i18nPermissions = {
accessMain: [
{ action: 'plugins::i18n.locale.read', subject: null },
{ action: 'plugins::i18n.locale.create', subject: null },
],
accessMain: [{ action: 'plugins::i18n.locale.read', subject: null }],
create: [{ action: 'plugins::i18n.locale.create', subject: null }],
delete: [{ action: 'plugins::i18n.locale.delete', subject: null }],
update: [{ action: 'plugins::i18n.locale.update', subject: null }],