2020-06-10 14:52:09 +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
|
|
|
|
main: [
|
|
|
|
{ action: 'plugins::upload.read', subject: null },
|
2020-06-11 10:18:33 +02:00
|
|
|
{
|
|
|
|
action: 'plugins::upload.assets.create',
|
2020-07-06 18:36:21 +02:00
|
|
|
subject: 'plugins::upload.file',
|
2020-06-11 10:18:33 +02:00
|
|
|
},
|
2020-06-11 12:47:31 +02:00
|
|
|
{
|
|
|
|
action: 'plugins::upload.assets.update',
|
2020-07-06 18:36:21 +02:00
|
|
|
subject: 'plugins::upload.file',
|
2020-06-11 12:47:31 +02:00
|
|
|
},
|
2020-06-10 14:52:09 +02:00
|
|
|
],
|
2020-06-11 16:26:48 +02:00
|
|
|
copyLink: [
|
|
|
|
{
|
|
|
|
action: 'plugins::upload.assets.copy-link',
|
|
|
|
subject: null,
|
|
|
|
},
|
|
|
|
],
|
2020-06-11 10:18:33 +02:00
|
|
|
create: [
|
|
|
|
{
|
|
|
|
action: 'plugins::upload.assets.create',
|
2020-07-06 18:36:21 +02:00
|
|
|
subject: 'plugins::upload.file',
|
2020-06-11 10:18:33 +02:00
|
|
|
},
|
|
|
|
],
|
2020-06-11 16:26:48 +02:00
|
|
|
download: [
|
|
|
|
{
|
|
|
|
action: 'plugins::upload.assets.download',
|
|
|
|
subject: null,
|
|
|
|
},
|
|
|
|
],
|
2020-07-03 14:51:00 +02:00
|
|
|
read: [{ action: 'plugins::upload.read', subject: null }],
|
2020-06-10 14:52:09 +02:00
|
|
|
settings: [{ action: 'plugins::upload.settings.read', subject: null }],
|
2020-07-06 18:36:21 +02:00
|
|
|
update: [
|
|
|
|
{ action: 'plugins::upload.assets.update', subject: 'plugins::upload.file', fields: null },
|
|
|
|
],
|
2020-06-10 14:52:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default pluginPermissions;
|