mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33: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',
|
||||
},
|
||||
{
|
||||
displayName: 'Can access to the Documentation',
|
||||
displayName: 'Access the Documentation',
|
||||
action: 'plugins::documentation.read',
|
||||
subCategory: 'general',
|
||||
plugin: 'plugin::documentation',
|
||||
@ -158,7 +158,7 @@ export const permissionsLayout = {
|
||||
plugin: 'plugin::documentation',
|
||||
},
|
||||
{
|
||||
displayName: 'Can access to the Media Library',
|
||||
displayName: 'Access the Media Library',
|
||||
action: 'plugins::upload.read',
|
||||
subCategory: 'general',
|
||||
plugin: 'plugin::upload',
|
||||
@ -172,13 +172,13 @@ export const permissionsLayout = {
|
||||
],
|
||||
settings: [
|
||||
{
|
||||
displayName: 'Can access the Media Library settings page',
|
||||
displayName: 'Access the Media Library settings page',
|
||||
action: 'plugins::upload.settings.read',
|
||||
category: 'media library',
|
||||
subCategory: 'general',
|
||||
},
|
||||
{
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
action: 'admin::marketplace.read',
|
||||
category: 'plugins and marketplace',
|
||||
subCategory: 'marketplace',
|
||||
|
||||
@ -27,7 +27,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
||||
subCategory: 'general',
|
||||
actions: [
|
||||
{
|
||||
displayName: 'Can access to the Documentation',
|
||||
displayName: 'Access the Documentation',
|
||||
action: 'plugins::documentation.read',
|
||||
subCategory: 'general',
|
||||
plugin: 'plugin::documentation',
|
||||
@ -60,7 +60,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
||||
subCategory: 'general',
|
||||
actions: [
|
||||
{
|
||||
displayName: 'Can access to the Media Library',
|
||||
displayName: 'Access the Media Library',
|
||||
action: 'plugins::upload.read',
|
||||
subCategory: 'general',
|
||||
plugin: 'plugin::upload',
|
||||
@ -94,7 +94,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
||||
subCategory: 'general',
|
||||
actions: [
|
||||
{
|
||||
displayName: 'Can access the Media Library settings page',
|
||||
displayName: 'Access the Media Library settings page',
|
||||
action: 'plugins::upload.settings.read',
|
||||
category: 'media library',
|
||||
subCategory: 'general',
|
||||
@ -110,7 +110,7 @@ describe('ADMIN | COMPONENTS | ROLE | UTILS | formatPermissionsLayout', () => {
|
||||
subCategory: 'marketplace',
|
||||
actions: [
|
||||
{
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
action: 'admin::marketplace.read',
|
||||
category: 'plugins and marketplace',
|
||||
subCategory: 'marketplace',
|
||||
|
||||
@ -4,7 +4,7 @@ module.exports = {
|
||||
actions: [
|
||||
{
|
||||
uid: 'marketplace.read',
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
pluginName: 'admin',
|
||||
section: 'settings',
|
||||
category: 'plugins and marketplace',
|
||||
|
||||
@ -74,7 +74,7 @@ describe('Action Provider Service', () => {
|
||||
test('Cannot register a settings action with a non standard name', async () => {
|
||||
const action = {
|
||||
uid: 'Marketplace Read',
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
pluginName: 'aPlugin',
|
||||
section: 'settings',
|
||||
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 () => {
|
||||
const action = {
|
||||
uid: 'marketplace.read',
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
pluginName: 'plugin-name-that-doesnt-exist',
|
||||
section: 'settings',
|
||||
category: 'plugins and marketplace',
|
||||
@ -125,7 +125,7 @@ describe('Action Provider Service', () => {
|
||||
test('Cannot register a settings action without category', async () => {
|
||||
const action = {
|
||||
uid: 'marketplace.read',
|
||||
displayName: 'Can access to the marketplace',
|
||||
displayName: 'Access the marketplace',
|
||||
pluginName: 'admin',
|
||||
section: 'settings',
|
||||
};
|
||||
|
||||
@ -67,7 +67,7 @@ Object {
|
||||
},
|
||||
Object {
|
||||
"action": "plugins::documentation.read",
|
||||
"displayName": "Can access to the Documentation",
|
||||
"displayName": "Access the Documentation",
|
||||
"plugin": "plugin::documentation",
|
||||
"subCategory": "general",
|
||||
},
|
||||
@ -109,7 +109,7 @@ Object {
|
||||
},
|
||||
Object {
|
||||
"action": "plugins::upload.read",
|
||||
"displayName": "Can access to the Media Library",
|
||||
"displayName": "Access the Media Library",
|
||||
"plugin": "plugin::upload",
|
||||
"subCategory": "general",
|
||||
},
|
||||
@ -190,7 +190,7 @@ Object {
|
||||
Object {
|
||||
"action": "admin::marketplace.read",
|
||||
"category": "plugins and marketplace",
|
||||
"displayName": "Can access to the marketplace",
|
||||
"displayName": "Access the marketplace",
|
||||
"subCategory": "marketplace",
|
||||
},
|
||||
Object {
|
||||
@ -268,7 +268,7 @@ Object {
|
||||
Object {
|
||||
"action": "plugins::upload.settings.read",
|
||||
"category": "media library",
|
||||
"displayName": "Can access the Media Library settings page",
|
||||
"displayName": "Access the Media Library settings page",
|
||||
"subCategory": "general",
|
||||
},
|
||||
],
|
||||
|
||||
@ -112,7 +112,7 @@ module.exports = async () => {
|
||||
const actions = [
|
||||
{
|
||||
section: 'plugins',
|
||||
displayName: 'Can access to the Documentation',
|
||||
displayName: 'Access the Documentation',
|
||||
uid: 'read',
|
||||
pluginName: 'documentation',
|
||||
},
|
||||
|
||||
@ -85,7 +85,7 @@ const registerPermissionActions = () => {
|
||||
const actions = [
|
||||
{
|
||||
section: 'plugins',
|
||||
displayName: 'Can access to the Media Library',
|
||||
displayName: 'Access the Media Library',
|
||||
uid: 'read',
|
||||
pluginName: 'upload',
|
||||
},
|
||||
@ -119,7 +119,7 @@ const registerPermissionActions = () => {
|
||||
},
|
||||
{
|
||||
section: 'settings',
|
||||
displayName: 'Can access the Media Library settings page',
|
||||
displayName: 'Access the Media Library settings page',
|
||||
uid: 'settings.read',
|
||||
category: 'media library',
|
||||
pluginName: 'upload',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user