mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Chore: Remove global admin permission import
This commit is contained in:
parent
9386e7cc7c
commit
dc83d9a7ab
@ -1 +0,0 @@
|
|||||||
export default {};
|
|
@ -1,92 +0,0 @@
|
|||||||
const permissions = {
|
|
||||||
contentManager: {
|
|
||||||
main: [],
|
|
||||||
collectionTypesConfigurations: [
|
|
||||||
{
|
|
||||||
action: 'plugin::content-manager.collection-types.configure-view',
|
|
||||||
subject: null,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
componentsConfigurations: [
|
|
||||||
{
|
|
||||||
action: 'plugin::content-manager.components.configure-layout',
|
|
||||||
subject: null,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
singleTypesConfigurations: [
|
|
||||||
{
|
|
||||||
action: 'plugin::content-manager.single-types.configure-view',
|
|
||||||
subject: null,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
marketplace: {
|
|
||||||
main: [{ action: 'admin::marketplace.read', subject: null }],
|
|
||||||
read: [{ action: 'admin::marketplace.read', subject: null }],
|
|
||||||
},
|
|
||||||
settings: {
|
|
||||||
roles: {
|
|
||||||
main: [
|
|
||||||
{ action: 'admin::roles.create', subject: null },
|
|
||||||
{ action: 'admin::roles.update', subject: null },
|
|
||||||
{ action: 'admin::roles.read', subject: null },
|
|
||||||
{ action: 'admin::roles.delete', subject: null },
|
|
||||||
],
|
|
||||||
create: [{ action: 'admin::roles.create', subject: null }],
|
|
||||||
delete: [{ action: 'admin::roles.delete', subject: null }],
|
|
||||||
read: [{ action: 'admin::roles.read', subject: null }],
|
|
||||||
update: [{ action: 'admin::roles.update', subject: null }],
|
|
||||||
},
|
|
||||||
users: {
|
|
||||||
main: [
|
|
||||||
{ action: 'admin::users.create', subject: null },
|
|
||||||
{ action: 'admin::users.read', subject: null },
|
|
||||||
{ action: 'admin::users.update', subject: null },
|
|
||||||
{ action: 'admin::users.delete', subject: null },
|
|
||||||
],
|
|
||||||
create: [{ action: 'admin::users.create', subject: null }],
|
|
||||||
delete: [{ action: 'admin::users.delete', subject: null }],
|
|
||||||
read: [{ action: 'admin::users.read', subject: null }],
|
|
||||||
update: [{ action: 'admin::users.update', subject: null }],
|
|
||||||
},
|
|
||||||
webhooks: {
|
|
||||||
main: [
|
|
||||||
{ action: 'admin::webhooks.create', subject: null },
|
|
||||||
{ action: 'admin::webhooks.read', subject: null },
|
|
||||||
{ action: 'admin::webhooks.update', subject: null },
|
|
||||||
{ action: 'admin::webhooks.delete', subject: null },
|
|
||||||
],
|
|
||||||
create: [{ action: 'admin::webhooks.create', subject: null }],
|
|
||||||
delete: [{ action: 'admin::webhooks.delete', subject: null }],
|
|
||||||
read: [
|
|
||||||
{ action: 'admin::webhooks.read', subject: null },
|
|
||||||
// NOTE: We need to check with the API
|
|
||||||
{ action: 'admin::webhooks.update', subject: null },
|
|
||||||
{ action: 'admin::webhooks.delete', subject: null },
|
|
||||||
],
|
|
||||||
update: [{ action: 'admin::webhooks.update', subject: null }],
|
|
||||||
},
|
|
||||||
'api-tokens': {
|
|
||||||
main: [{ action: 'admin::api-tokens.access', subject: null }],
|
|
||||||
create: [{ action: 'admin::api-tokens.create', subject: null }],
|
|
||||||
delete: [{ action: 'admin::api-tokens.delete', subject: null }],
|
|
||||||
read: [{ action: 'admin::api-tokens.read', subject: null }],
|
|
||||||
update: [{ action: 'admin::api-tokens.update', subject: null }],
|
|
||||||
regenerate: [{ action: 'admin::api-tokens.regenerate', subject: null }],
|
|
||||||
},
|
|
||||||
'transfer-tokens': {
|
|
||||||
main: [{ action: 'admin::transfer.tokens.access', subject: null }],
|
|
||||||
create: [{ action: 'admin::transfer.tokens.create', subject: null }],
|
|
||||||
delete: [{ action: 'admin::transfer.tokens.delete', subject: null }],
|
|
||||||
read: [{ action: 'admin::transfer.tokens.read', subject: null }],
|
|
||||||
update: [{ action: 'admin::transfer.tokens.update', subject: null }],
|
|
||||||
regenerate: [{ action: 'admin::transfer.tokens.regenerate', subject: null }],
|
|
||||||
},
|
|
||||||
'project-settings': {
|
|
||||||
read: [{ action: 'admin::project-settings.read', subject: null }],
|
|
||||||
update: [{ action: 'admin::project-settings.update', subject: null }],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export default permissions;
|
|
@ -1,8 +0,0 @@
|
|||||||
import customPermissions from 'ee_else_ce/permissions/customPermissions';
|
|
||||||
import merge from 'lodash/merge';
|
|
||||||
|
|
||||||
import defaultPermissions from './defaultPermissions';
|
|
||||||
|
|
||||||
const permissions = merge(defaultPermissions, customPermissions);
|
|
||||||
|
|
||||||
export default permissions;
|
|
Loading…
x
Reference in New Issue
Block a user