2020-06-10 14:37:43 +02:00
|
|
|
const pluginPermissions = {
|
|
|
|
// 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
|
2020-06-10 14:42:36 +02:00
|
|
|
main: [
|
2021-08-06 18:09:49 +02:00
|
|
|
{ action: 'plugin::documentation.read', subject: null },
|
|
|
|
{ action: 'plugin::documentation.settings.regenerate', subject: null },
|
|
|
|
{ action: 'plugin::documentation.settings.update', subject: null },
|
2020-06-10 14:42:36 +02:00
|
|
|
],
|
2020-06-10 16:56:27 +02:00
|
|
|
open: [
|
2021-08-06 18:09:49 +02:00
|
|
|
{ action: 'plugin::documentation.read', subject: null },
|
|
|
|
{ action: 'plugin::documentation.settings.regenerate', subject: null },
|
2020-06-10 16:56:27 +02:00
|
|
|
],
|
2021-08-06 18:09:49 +02:00
|
|
|
regenerate: [{ action: 'plugin::documentation.settings.regenerate', subject: null }],
|
|
|
|
update: [{ action: 'plugin::documentation.settings.update', subject: null }],
|
2020-06-10 14:37:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default pluginPermissions;
|