mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 10:07:55 +00:00
Update naming of permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
31d748f52e
commit
5c6851e6ba
@ -140,7 +140,7 @@ export const permissionsLayout = {
|
|||||||
plugin: 'plugin::content-type-builder',
|
plugin: 'plugin::content-type-builder',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the Documentation',
|
displayName: 'Access the Documentation',
|
||||||
action: 'plugins::documentation.read',
|
action: 'plugins::documentation.read',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
plugin: 'plugin::documentation',
|
plugin: 'plugin::documentation',
|
||||||
@ -158,7 +158,7 @@ export const permissionsLayout = {
|
|||||||
plugin: 'plugin::documentation',
|
plugin: 'plugin::documentation',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the Media Library',
|
displayName: 'Access the Media Library',
|
||||||
action: 'plugins::upload.read',
|
action: 'plugins::upload.read',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
plugin: 'plugin::upload',
|
plugin: 'plugin::upload',
|
||||||
@ -172,13 +172,13 @@ export const permissionsLayout = {
|
|||||||
],
|
],
|
||||||
settings: [
|
settings: [
|
||||||
{
|
{
|
||||||
displayName: 'Can access the Media Library settings page',
|
displayName: 'Access the Media Library settings page',
|
||||||
action: 'plugins::upload.settings.read',
|
action: 'plugins::upload.settings.read',
|
||||||
category: 'media library',
|
category: 'media library',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
action: 'admin::marketplace.read',
|
action: 'admin::marketplace.read',
|
||||||
category: 'plugins and marketplace',
|
category: 'plugins and marketplace',
|
||||||
subCategory: 'marketplace',
|
subCategory: 'marketplace',
|
||||||
|
|||||||
@ -27,7 +27,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
|||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the Documentation',
|
displayName: 'Access the Documentation',
|
||||||
action: 'plugins::documentation.read',
|
action: 'plugins::documentation.read',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
plugin: 'plugin::documentation',
|
plugin: 'plugin::documentation',
|
||||||
@ -60,7 +60,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
|||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the Media Library',
|
displayName: 'Access the Media Library',
|
||||||
action: 'plugins::upload.read',
|
action: 'plugins::upload.read',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
plugin: 'plugin::upload',
|
plugin: 'plugin::upload',
|
||||||
@ -94,7 +94,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
|||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
displayName: 'Can access the Media Library settings page',
|
displayName: 'Access the Media Library settings page',
|
||||||
action: 'plugins::upload.settings.read',
|
action: 'plugins::upload.settings.read',
|
||||||
category: 'media library',
|
category: 'media library',
|
||||||
subCategory: 'general',
|
subCategory: 'general',
|
||||||
@ -110,7 +110,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
|||||||
subCategory: 'marketplace',
|
subCategory: 'marketplace',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
action: 'admin::marketplace.read',
|
action: 'admin::marketplace.read',
|
||||||
category: 'plugins and marketplace',
|
category: 'plugins and marketplace',
|
||||||
subCategory: 'marketplace',
|
subCategory: 'marketplace',
|
||||||
|
|||||||
@ -4,7 +4,7 @@ module.exports = {
|
|||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
uid: 'marketplace.read',
|
uid: 'marketplace.read',
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
pluginName: 'admin',
|
pluginName: 'admin',
|
||||||
section: 'settings',
|
section: 'settings',
|
||||||
category: 'plugins and marketplace',
|
category: 'plugins and marketplace',
|
||||||
|
|||||||
@ -74,7 +74,7 @@ describe('Action Provider Service', () => {
|
|||||||
test('Cannot register a settings action with a non standard name', async () => {
|
test('Cannot register a settings action with a non standard name', async () => {
|
||||||
const action = {
|
const action = {
|
||||||
uid: 'Marketplace Read',
|
uid: 'Marketplace Read',
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
pluginName: 'aPlugin',
|
pluginName: 'aPlugin',
|
||||||
section: 'settings',
|
section: 'settings',
|
||||||
category: 'plugins and marketplace',
|
category: 'plugins and marketplace',
|
||||||
@ -111,7 +111,7 @@ describe('Action Provider Service', () => {
|
|||||||
test("Cannot register a settings action with a pluginName that doesn't exist", async () => {
|
test("Cannot register a settings action with a pluginName that doesn't exist", async () => {
|
||||||
const action = {
|
const action = {
|
||||||
uid: 'marketplace.read',
|
uid: 'marketplace.read',
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
pluginName: 'plugin-name-that-doesnt-exist',
|
pluginName: 'plugin-name-that-doesnt-exist',
|
||||||
section: 'settings',
|
section: 'settings',
|
||||||
category: 'plugins and marketplace',
|
category: 'plugins and marketplace',
|
||||||
@ -125,7 +125,7 @@ describe('Action Provider Service', () => {
|
|||||||
test('Cannot register a settings action without category', async () => {
|
test('Cannot register a settings action without category', async () => {
|
||||||
const action = {
|
const action = {
|
||||||
uid: 'marketplace.read',
|
uid: 'marketplace.read',
|
||||||
displayName: 'Can access to the marketplace',
|
displayName: 'Access the marketplace',
|
||||||
pluginName: 'admin',
|
pluginName: 'admin',
|
||||||
section: 'settings',
|
section: 'settings',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -67,7 +67,7 @@ Object {
|
|||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"action": "plugins::documentation.read",
|
"action": "plugins::documentation.read",
|
||||||
"displayName": "Can access to the Documentation",
|
"displayName": "Access the Documentation",
|
||||||
"plugin": "plugin::documentation",
|
"plugin": "plugin::documentation",
|
||||||
"subCategory": "general",
|
"subCategory": "general",
|
||||||
},
|
},
|
||||||
@ -109,7 +109,7 @@ Object {
|
|||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"action": "plugins::upload.read",
|
"action": "plugins::upload.read",
|
||||||
"displayName": "Can access to the Media Library",
|
"displayName": "Access the Media Library",
|
||||||
"plugin": "plugin::upload",
|
"plugin": "plugin::upload",
|
||||||
"subCategory": "general",
|
"subCategory": "general",
|
||||||
},
|
},
|
||||||
@ -190,7 +190,7 @@ Object {
|
|||||||
Object {
|
Object {
|
||||||
"action": "admin::marketplace.read",
|
"action": "admin::marketplace.read",
|
||||||
"category": "plugins and marketplace",
|
"category": "plugins and marketplace",
|
||||||
"displayName": "Can access to the marketplace",
|
"displayName": "Access the marketplace",
|
||||||
"subCategory": "marketplace",
|
"subCategory": "marketplace",
|
||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
@ -268,7 +268,7 @@ Object {
|
|||||||
Object {
|
Object {
|
||||||
"action": "plugins::upload.settings.read",
|
"action": "plugins::upload.settings.read",
|
||||||
"category": "media library",
|
"category": "media library",
|
||||||
"displayName": "Can access the Media Library settings page",
|
"displayName": "Access the Media Library settings page",
|
||||||
"subCategory": "general",
|
"subCategory": "general",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -112,7 +112,7 @@ module.exports = async () => {
|
|||||||
const actions = [
|
const actions = [
|
||||||
{
|
{
|
||||||
section: 'plugins',
|
section: 'plugins',
|
||||||
displayName: 'Can access to the Documentation',
|
displayName: 'Access the Documentation',
|
||||||
uid: 'read',
|
uid: 'read',
|
||||||
pluginName: 'documentation',
|
pluginName: 'documentation',
|
||||||
},
|
},
|
||||||
|
|||||||
@ -85,7 +85,7 @@ const registerPermissionActions = () => {
|
|||||||
const actions = [
|
const actions = [
|
||||||
{
|
{
|
||||||
section: 'plugins',
|
section: 'plugins',
|
||||||
displayName: 'Can access to the Media Library',
|
displayName: 'Access the Media Library',
|
||||||
uid: 'read',
|
uid: 'read',
|
||||||
pluginName: 'upload',
|
pluginName: 'upload',
|
||||||
},
|
},
|
||||||
@ -119,7 +119,7 @@ const registerPermissionActions = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
section: 'settings',
|
section: 'settings',
|
||||||
displayName: 'Can access the Media Library settings page',
|
displayName: 'Access the Media Library settings page',
|
||||||
uid: 'settings.read',
|
uid: 'settings.read',
|
||||||
category: 'media library',
|
category: 'media library',
|
||||||
pluginName: 'upload',
|
pluginName: 'upload',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user