/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/plugins/documentation/admin/src/constants.ts
17 строк
841 B
Alexandre Bodin
chore: migrate doc plugin to ts
21 мар 2024, 20:20
21 мар 2024, 20:20
eedd4c9
Код
Авторство
О чём код?
export const PERMISSIONS = { // This permission regards the main component (App) and is used to tell // If the plugin link should be displayed in the menu // And also if the plugin is accessible. This use case is found when a user types the url of the // plugin directly in the browser main: [ { action: 'plugin::documentation.read', subject: null }, { action: 'plugin::documentation.settings.regenerate', subject: null }, { action: 'plugin::documentation.settings.update', subject: null }, ], open: [ { action: 'plugin::documentation.read', subject: null }, { action: 'plugin::documentation.settings.regenerate', subject: null }, ], regenerate: [{ action: 'plugin::documentation.settings.regenerate', subject: null }], update: [{ action: 'plugin::documentation.settings.update', subject: null }], };