strapi/tests/api/core/admin/admin-permission.test.api.js
Fernando Chávez 5b211b3891
chore(content-releases): releases migration to v5 (#20259)
* chore: migrate bulk publish & unpublish to v5

* chore: change findLocales type to accept arrays

* chore: fix lint error

* chore: migrate bulkDelete to v5 (#20161)

* chore: migrate bulkDelete to v5

* chore: change findLocales type to accept strings array

* fix: docs prettier styles

* chore: remove console.log

* enhancement: migrate countManyDraftRelations to v5

* chore(content-releases): v5 migration

* chore(content-releases): remove CMReleasesContainer

* fix(content-releases): singleType works with v5 changes and e2e tests enabled

* fix(content-releases): apply josh & marc comments

* apply comments

* fix(content-releases): tests

* fix(content-releases): create custom populate object for each content type to handle relations

* fix(content-releases): build problem

* fix(content-releases): editing lifecycles

* fix(content-releases): details view table columns

* feat: releases settings (#20354)

* feat: releases settings

* feat: test nulling default timezone

* chore: refactor tests

* fix: remove async from describe

* chore: OneOf type for response

* chore: move OneOf utility to types package

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>

* feat: content releases settings permissions (#20357)

* feat: releases settings

* feat: test nulling default timezone

* chore: refactor tests

* fix: remove async from describe

* feat: content releases settings permissions

* chore: test for unauthorized role

---------

Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>

* fix(content-releases): run settings api tests only on ee edition

* fix(content-releases): apply mark comments

* fix(content-releases): remove releases box when there are no releases related to the entry

* fix(content-releases): relation between actions and documents (#20424)

* fix(content-releases): refactor relation with entries

* fix(content-releases): refactor relation with entries

* fix(content-releases): lint & unit tests errors

* fix(content-releases): add migration for releases actions coming from v4

* fix(content-releases): apply multiple suggestions

* fix(content-releases): new test data for e2e tests

* fix(content-releases): fix test data

* fix(content-releases): handle edge cases

* fix(content-releases): apply marc suggestions

* fix(content-releases): add modified status on validation column

* fix(content-releases): fix releases menu button

* fix(content-releases): use documents middleware instead of db lifecycles

* fix(content-releases): invalidate releases tags on some content manager queries

* fix(content-releases): using contentType utils and make afterDeleteMany lifecycle async

* fix(content-releases): ui fixs

* fix(content-releases): removing not needed axios from releases plugin

* fix(content-releases): invalidate tags on release service

* fix(content-releases): fix dependencies

* feat(release-settings): remove navbar link release purchase page in CE (#20498)

---------

Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
Co-authored-by: Simone <startae14@gmail.com>
2024-06-13 11:12:38 +02:00

1201 lines
42 KiB
JavaScript

'use strict';
const _ = require('lodash');
const { createAuthRequest } = require('api-tests/request');
const { createStrapiInstance } = require('api-tests/strapi');
describe('Role CRUD End to End', () => {
let rq;
let strapi;
beforeAll(async () => {
strapi = await createStrapiInstance();
rq = await createAuthRequest({ strapi });
});
afterAll(async () => {
await strapi.destroy();
});
test('Can get the existing permissions', async () => {
const res = await rq({
url: '/admin/permissions',
method: 'GET',
});
expect(res.statusCode).toBe(200);
// Data is sorted to avoid error with snapshot when the data is not in the same order
const sortedData = _.cloneDeep(res.body.data);
Object.keys(sortedData.sections).forEach((sectionName) => {
sortedData.sections[sectionName] = _.sortBy(sortedData.sections[sectionName], ['action']);
});
sortedData.conditions = sortedData.conditions.sort();
const hasSSO = strapi.ee.features.isEnabled('sso');
if (hasSSO) {
expect(sortedData).toMatchInlineSnapshot(`
{
"conditions": [
{
"category": "default",
"displayName": "Is creator",
"id": "admin::is-creator",
},
{
"category": "default",
"displayName": "Has same role as creator",
"id": "admin::has-same-role-as-creator",
},
],
"sections": {
"collectionTypes": [
[
{
"actionId": "plugin::content-manager.explorer.create",
"applyToProperties": [
"fields",
"locales",
],
"label": "Create",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.read",
"applyToProperties": [
"fields",
"locales",
],
"label": "Read",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.update",
"applyToProperties": [
"fields",
"locales",
],
"label": "Update",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.delete",
"applyToProperties": [
"locales",
],
"label": "Delete",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.publish",
"applyToProperties": [
"locales",
],
"label": "Publish",
"subjects": [
"plugin::users-permissions.user",
],
},
],
[
{
"label": "user",
"properties": [
{
"children": [
{
"label": "username",
"required": true,
"value": "username",
},
{
"label": "email",
"required": true,
"value": "email",
},
{
"label": "provider",
"value": "provider",
},
{
"label": "password",
"value": "password",
},
{
"label": "resetPasswordToken",
"value": "resetPasswordToken",
},
{
"label": "confirmationToken",
"value": "confirmationToken",
},
{
"label": "confirmed",
"value": "confirmed",
},
{
"label": "blocked",
"value": "blocked",
},
{
"label": "role",
"value": "role",
},
],
"label": "Fields",
"value": "fields",
},
],
"uid": "plugin::users-permissions.user",
},
],
],
"plugins": [
{
"action": "plugin::content-manager.collection-types.configure-view",
"displayName": "Configure view",
"plugin": "content-manager",
"subCategory": "collection types",
},
{
"action": "plugin::content-manager.components.configure-layout",
"displayName": "Configure Layout",
"plugin": "content-manager",
"subCategory": "components",
},
{
"action": "plugin::content-manager.single-types.configure-view",
"displayName": "Configure view",
"plugin": "content-manager",
"subCategory": "single types",
},
{
"action": "plugin::content-releases.create",
"displayName": "Create",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.create-action",
"displayName": "Add an entry to a release",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.delete",
"displayName": "Delete",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.delete-action",
"displayName": "Remove an entry from a release",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.publish",
"displayName": "Publish",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.read",
"displayName": "Read",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-releases.update",
"displayName": "Edit",
"plugin": "content-releases",
"subCategory": "general",
},
{
"action": "plugin::content-type-builder.read",
"displayName": "Read",
"plugin": "content-type-builder",
"subCategory": "general",
},
{
"action": "plugin::documentation.read",
"displayName": "Access the Documentation",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::documentation.settings.regenerate",
"displayName": "Regenerate",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::documentation.settings.update",
"displayName": "Update and delete",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::upload.assets.copy-link",
"displayName": "Copy link",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.create",
"displayName": "Create (upload)",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.download",
"displayName": "Download",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.update",
"displayName": "Update (crop, details, replace) + delete",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.configure-view",
"displayName": "Configure view",
"plugin": "upload",
"subCategory": "general",
},
{
"action": "plugin::upload.read",
"displayName": "Access the Media Library",
"plugin": "upload",
"subCategory": "general",
},
{
"action": "plugin::users-permissions.advanced-settings.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "advancedSettings",
},
{
"action": "plugin::users-permissions.advanced-settings.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "advancedSettings",
},
{
"action": "plugin::users-permissions.email-templates.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "emailTemplates",
},
{
"action": "plugin::users-permissions.email-templates.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "emailTemplates",
},
{
"action": "plugin::users-permissions.providers.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "providers",
},
{
"action": "plugin::users-permissions.providers.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "providers",
},
{
"action": "plugin::users-permissions.roles.create",
"displayName": "Create",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.delete",
"displayName": "Delete",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.update",
"displayName": "Update",
"plugin": "users-permissions",
"subCategory": "roles",
},
],
"settings": [
{
"action": "admin::api-tokens.access",
"category": "api tokens",
"displayName": "Access the API tokens settings page",
"subCategory": "api Tokens",
},
{
"action": "admin::api-tokens.create",
"category": "api tokens",
"displayName": "Create (generate)",
"subCategory": "general",
},
{
"action": "admin::api-tokens.delete",
"category": "api tokens",
"displayName": "Delete (revoke)",
"subCategory": "general",
},
{
"action": "admin::api-tokens.read",
"category": "api tokens",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::api-tokens.regenerate",
"category": "api tokens",
"displayName": "Regenerate",
"subCategory": "general",
},
{
"action": "admin::api-tokens.update",
"category": "api tokens",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "admin::audit-logs.read",
"category": "audit logs",
"displayName": "Read",
"subCategory": "options",
},
{
"action": "admin::marketplace.read",
"category": "plugins and marketplace",
"displayName": "Access the marketplace",
"subCategory": "marketplace",
},
{
"action": "admin::project-settings.read",
"category": "project",
"displayName": "Read the project level settings",
"subCategory": "general",
},
{
"action": "admin::project-settings.update",
"category": "project",
"displayName": "Update the project level settings",
"subCategory": "general",
},
{
"action": "admin::provider-login.read",
"category": "single sign on",
"displayName": "Read",
"subCategory": "options",
},
{
"action": "admin::provider-login.update",
"category": "single sign on",
"displayName": "Update",
"subCategory": "options",
},
{
"action": "admin::review-workflows.create",
"category": "review workflows",
"displayName": "Create",
"subCategory": "options",
},
{
"action": "admin::review-workflows.delete",
"category": "review workflows",
"displayName": "Delete",
"subCategory": "options",
},
{
"action": "admin::review-workflows.read",
"category": "review workflows",
"displayName": "Read",
"subCategory": "options",
},
{
"action": "admin::review-workflows.update",
"category": "review workflows",
"displayName": "Update",
"subCategory": "options",
},
{
"action": "admin::roles.create",
"category": "users and roles",
"displayName": "Create",
"subCategory": "roles",
},
{
"action": "admin::roles.delete",
"category": "users and roles",
"displayName": "Delete",
"subCategory": "roles",
},
{
"action": "admin::roles.read",
"category": "users and roles",
"displayName": "Read",
"subCategory": "roles",
},
{
"action": "admin::roles.update",
"category": "users and roles",
"displayName": "Update",
"subCategory": "roles",
},
{
"action": "admin::transfer.tokens.access",
"category": "transfer tokens",
"displayName": "Access the transfer tokens settings page",
"subCategory": "transfer tokens",
},
{
"action": "admin::transfer.tokens.create",
"category": "transfer tokens",
"displayName": "Create (generate)",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.delete",
"category": "transfer tokens",
"displayName": "Delete (revoke)",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.read",
"category": "transfer tokens",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.regenerate",
"category": "transfer tokens",
"displayName": "Regenerate",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.update",
"category": "transfer tokens",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "admin::users.create",
"category": "users and roles",
"displayName": "Create (invite)",
"subCategory": "users",
},
{
"action": "admin::users.delete",
"category": "users and roles",
"displayName": "Delete",
"subCategory": "users",
},
{
"action": "admin::users.read",
"category": "users and roles",
"displayName": "Read",
"subCategory": "users",
},
{
"action": "admin::users.update",
"category": "users and roles",
"displayName": "Update",
"subCategory": "users",
},
{
"action": "admin::webhooks.create",
"category": "webhooks",
"displayName": "Create",
"subCategory": "general",
},
{
"action": "admin::webhooks.delete",
"category": "webhooks",
"displayName": "Delete",
"subCategory": "general",
},
{
"action": "admin::webhooks.read",
"category": "webhooks",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::webhooks.update",
"category": "webhooks",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "plugin::content-releases.settings.read",
"category": "content releases",
"displayName": "Read",
"subCategory": "options",
},
{
"action": "plugin::content-releases.settings.update",
"category": "content releases",
"displayName": "Edit",
"subCategory": "options",
},
{
"action": "plugin::documentation.settings.read",
"category": "documentation",
"displayName": "Access the documentation settings page",
"subCategory": "general",
},
{
"action": "plugin::email.settings.read",
"category": "email",
"displayName": "Access the Email Settings page",
"subCategory": "general",
},
{
"action": "plugin::i18n.locale.create",
"category": "Internationalization",
"displayName": "Create",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.delete",
"category": "Internationalization",
"displayName": "Delete",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.read",
"category": "Internationalization",
"displayName": "Read",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.update",
"category": "Internationalization",
"displayName": "Update",
"subCategory": "Locales",
},
{
"action": "plugin::upload.settings.read",
"category": "media library",
"displayName": "Access the Media Library settings page",
"subCategory": "general",
},
],
"singleTypes": [
[
{
"actionId": "plugin::content-manager.explorer.create",
"applyToProperties": [
"fields",
"locales",
],
"label": "Create",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.read",
"applyToProperties": [
"fields",
"locales",
],
"label": "Read",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.update",
"applyToProperties": [
"fields",
"locales",
],
"label": "Update",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.delete",
"applyToProperties": [
"locales",
],
"label": "Delete",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.publish",
"applyToProperties": [
"locales",
],
"label": "Publish",
"subjects": [
"plugin::users-permissions.user",
],
},
],
[],
],
},
}
`);
} else {
expect(sortedData).toMatchInlineSnapshot(`
{
"conditions": [
{
"category": "default",
"displayName": "Is creator",
"id": "admin::is-creator",
},
{
"category": "default",
"displayName": "Has same role as creator",
"id": "admin::has-same-role-as-creator",
},
],
"sections": {
"collectionTypes": [
[
{
"actionId": "plugin::content-manager.explorer.create",
"applyToProperties": [
"fields",
"locales",
],
"label": "Create",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.read",
"applyToProperties": [
"fields",
"locales",
],
"label": "Read",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.update",
"applyToProperties": [
"fields",
"locales",
],
"label": "Update",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.delete",
"applyToProperties": [
"locales",
],
"label": "Delete",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.publish",
"applyToProperties": [
"locales",
],
"label": "Publish",
"subjects": [
"plugin::users-permissions.user",
],
},
],
[
{
"label": "user",
"properties": [
{
"children": [
{
"label": "username",
"required": true,
"value": "username",
},
{
"label": "email",
"required": true,
"value": "email",
},
{
"label": "provider",
"value": "provider",
},
{
"label": "password",
"value": "password",
},
{
"label": "resetPasswordToken",
"value": "resetPasswordToken",
},
{
"label": "confirmationToken",
"value": "confirmationToken",
},
{
"label": "confirmed",
"value": "confirmed",
},
{
"label": "blocked",
"value": "blocked",
},
{
"label": "role",
"value": "role",
},
],
"label": "Fields",
"value": "fields",
},
],
"uid": "plugin::users-permissions.user",
},
],
],
"plugins": [
{
"action": "plugin::content-manager.collection-types.configure-view",
"displayName": "Configure view",
"plugin": "content-manager",
"subCategory": "collection types",
},
{
"action": "plugin::content-manager.components.configure-layout",
"displayName": "Configure Layout",
"plugin": "content-manager",
"subCategory": "components",
},
{
"action": "plugin::content-manager.single-types.configure-view",
"displayName": "Configure view",
"plugin": "content-manager",
"subCategory": "single types",
},
{
"action": "plugin::content-type-builder.read",
"displayName": "Read",
"plugin": "content-type-builder",
"subCategory": "general",
},
{
"action": "plugin::documentation.read",
"displayName": "Access the Documentation",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::documentation.settings.regenerate",
"displayName": "Regenerate",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::documentation.settings.update",
"displayName": "Update and delete",
"plugin": "documentation",
"subCategory": "general",
},
{
"action": "plugin::upload.assets.copy-link",
"displayName": "Copy link",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.create",
"displayName": "Create (upload)",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.download",
"displayName": "Download",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.assets.update",
"displayName": "Update (crop, details, replace) + delete",
"plugin": "upload",
"subCategory": "assets",
},
{
"action": "plugin::upload.configure-view",
"displayName": "Configure view",
"plugin": "upload",
"subCategory": "general",
},
{
"action": "plugin::upload.read",
"displayName": "Access the Media Library",
"plugin": "upload",
"subCategory": "general",
},
{
"action": "plugin::users-permissions.advanced-settings.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "advancedSettings",
},
{
"action": "plugin::users-permissions.advanced-settings.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "advancedSettings",
},
{
"action": "plugin::users-permissions.email-templates.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "emailTemplates",
},
{
"action": "plugin::users-permissions.email-templates.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "emailTemplates",
},
{
"action": "plugin::users-permissions.providers.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "providers",
},
{
"action": "plugin::users-permissions.providers.update",
"displayName": "Edit",
"plugin": "users-permissions",
"subCategory": "providers",
},
{
"action": "plugin::users-permissions.roles.create",
"displayName": "Create",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.delete",
"displayName": "Delete",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.read",
"displayName": "Read",
"plugin": "users-permissions",
"subCategory": "roles",
},
{
"action": "plugin::users-permissions.roles.update",
"displayName": "Update",
"plugin": "users-permissions",
"subCategory": "roles",
},
],
"settings": [
{
"action": "admin::api-tokens.access",
"category": "api tokens",
"displayName": "Access the API tokens settings page",
"subCategory": "api Tokens",
},
{
"action": "admin::api-tokens.create",
"category": "api tokens",
"displayName": "Create (generate)",
"subCategory": "general",
},
{
"action": "admin::api-tokens.delete",
"category": "api tokens",
"displayName": "Delete (revoke)",
"subCategory": "general",
},
{
"action": "admin::api-tokens.read",
"category": "api tokens",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::api-tokens.regenerate",
"category": "api tokens",
"displayName": "Regenerate",
"subCategory": "general",
},
{
"action": "admin::api-tokens.update",
"category": "api tokens",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "admin::marketplace.read",
"category": "plugins and marketplace",
"displayName": "Access the marketplace",
"subCategory": "marketplace",
},
{
"action": "admin::project-settings.read",
"category": "project",
"displayName": "Read the project level settings",
"subCategory": "general",
},
{
"action": "admin::project-settings.update",
"category": "project",
"displayName": "Update the project level settings",
"subCategory": "general",
},
{
"action": "admin::roles.create",
"category": "users and roles",
"displayName": "Create",
"subCategory": "roles",
},
{
"action": "admin::roles.delete",
"category": "users and roles",
"displayName": "Delete",
"subCategory": "roles",
},
{
"action": "admin::roles.read",
"category": "users and roles",
"displayName": "Read",
"subCategory": "roles",
},
{
"action": "admin::roles.update",
"category": "users and roles",
"displayName": "Update",
"subCategory": "roles",
},
{
"action": "admin::transfer.tokens.access",
"category": "transfer tokens",
"displayName": "Access the transfer tokens settings page",
"subCategory": "transfer tokens",
},
{
"action": "admin::transfer.tokens.create",
"category": "transfer tokens",
"displayName": "Create (generate)",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.delete",
"category": "transfer tokens",
"displayName": "Delete (revoke)",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.read",
"category": "transfer tokens",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.regenerate",
"category": "transfer tokens",
"displayName": "Regenerate",
"subCategory": "general",
},
{
"action": "admin::transfer.tokens.update",
"category": "transfer tokens",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "admin::users.create",
"category": "users and roles",
"displayName": "Create (invite)",
"subCategory": "users",
},
{
"action": "admin::users.delete",
"category": "users and roles",
"displayName": "Delete",
"subCategory": "users",
},
{
"action": "admin::users.read",
"category": "users and roles",
"displayName": "Read",
"subCategory": "users",
},
{
"action": "admin::users.update",
"category": "users and roles",
"displayName": "Update",
"subCategory": "users",
},
{
"action": "admin::webhooks.create",
"category": "webhooks",
"displayName": "Create",
"subCategory": "general",
},
{
"action": "admin::webhooks.delete",
"category": "webhooks",
"displayName": "Delete",
"subCategory": "general",
},
{
"action": "admin::webhooks.read",
"category": "webhooks",
"displayName": "Read",
"subCategory": "general",
},
{
"action": "admin::webhooks.update",
"category": "webhooks",
"displayName": "Update",
"subCategory": "general",
},
{
"action": "plugin::documentation.settings.read",
"category": "documentation",
"displayName": "Access the documentation settings page",
"subCategory": "general",
},
{
"action": "plugin::email.settings.read",
"category": "email",
"displayName": "Access the Email Settings page",
"subCategory": "general",
},
{
"action": "plugin::i18n.locale.create",
"category": "Internationalization",
"displayName": "Create",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.delete",
"category": "Internationalization",
"displayName": "Delete",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.read",
"category": "Internationalization",
"displayName": "Read",
"subCategory": "Locales",
},
{
"action": "plugin::i18n.locale.update",
"category": "Internationalization",
"displayName": "Update",
"subCategory": "Locales",
},
{
"action": "plugin::upload.settings.read",
"category": "media library",
"displayName": "Access the Media Library settings page",
"subCategory": "general",
},
],
"singleTypes": [
[
{
"actionId": "plugin::content-manager.explorer.create",
"applyToProperties": [
"fields",
"locales",
],
"label": "Create",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.read",
"applyToProperties": [
"fields",
"locales",
],
"label": "Read",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.update",
"applyToProperties": [
"fields",
"locales",
],
"label": "Update",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.delete",
"applyToProperties": [
"locales",
],
"label": "Delete",
"subjects": [
"plugin::users-permissions.user",
],
},
{
"actionId": "plugin::content-manager.explorer.publish",
"applyToProperties": [
"locales",
],
"label": "Publish",
"subjects": [
"plugin::users-permissions.user",
],
},
],
[],
],
},
}
`);
}
});
});